SWAP VALUES

From Macros Wiki
Jump to: navigation, search

Up

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

(h4 will now be set to 7 and h3 will be set to 3)