summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index e5663f7bf..cb7ded9df 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -7779,6 +7779,19 @@ Example:
---------------------------------------
+*swap <variable>,<variable>;
+
+Swap the value of 2 variables. Both sides must be same integer or string type.
+
+Example:
+ .@var1 = 111;
+ .@var2 = 222;
+ swap .@var1, .@var2;
+ mes "var1 = "+ .@var1; // return 222
+ mes "var2 = "+ .@var2; // return 111
+
+---------------------------------------
+
*query_sql("your MySQL query"{, <array variable>{, <array variable>{, ...}}});
*query_logsql("your MySQL query"{, <array variable>{, <array variable>{, ...}}});