Module SWAP

Source
Expand description

§SWAP <variable>,<variable>

§Purpose

Swaps the values of two variables.

§Remarks

A ?TYPE MISMATCH error will occur if the types aren’t identical. It’s just like TEMP=A : A=B : B=TEMP but doesn’t need a temporary variable.

§Example

SWAP A,B