Difference between revisions of "SWAP VALUES"
From Macros Wiki
(New page: {{Up}} {{Command|syntax=SWAP_VALUES <variable 1>, <variable 2> |description=:Swap the values of 2 different defined variables. |param1=<variable 1>|param1_des...) |
|||
Line 2: | Line 2: | ||
{{Command|syntax=SWAP_VALUES <variable 1>, <variable 2> | {{Command|syntax=SWAP_VALUES <variable 1>, <variable 2> | ||
− | |description=:Swap the values of 2 different | + | |description=:Swap the values of 2 different variables. |
|param1=<variable 1>|param1_desc=Initial variable to swap with the second | |param1=<variable 1>|param1_desc=Initial variable to swap with the second | ||
Line 9: | Line 9: | ||
===Example=== | ===Example=== | ||
+ | :h4 = 3 | ||
+ | :h3 = 7 | ||
:SWAP_VALUES h4, h3 | :SWAP_VALUES h4, h3 | ||
[[Category:Miscellaneous]] | [[Category:Miscellaneous]] |
Revision as of 17:45, 13 August 2010
Command
- SWAP_VALUES <variable 1>, <variable 2>
- Swap the values of 2 different variables.
Parameters
- <variable 1>
- Initial variable to swap with the second
- <variable 2>
- Second variable to swap with the first
Example
- h4 = 3
- h3 = 7
- SWAP_VALUES h4, h3