From a70f77c15946b419af2f33c9d6986fc351e54f5e Mon Sep 17 00:00:00 2001 From: AnnieRuru Date: Wed, 23 Dec 2015 18:05:43 +0800 Subject: Add *swap script command - extremely useful when writing algorithm functions Closes #1012 as merged Signed-off-by: Haru --- doc/script_commands.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'doc') 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 ,; + +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"{, {, {, ...}}}); *query_logsql("your MySQL query"{, {, {, ...}}}); -- cgit v1.2.3-60-g2f50