SWAP VALUES: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
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... |
No edit summary |
||
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 21: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