Skip to content
Abe Pralle edited this page Sep 7, 2022 · 3 revisions

Syntax

swapValues(a,b)

Description

swapValues(a,b) exchanges the values of variables a and b.

The compiler generates the following code block to perform the swap:

block
  local temp = a
  a = b
  b = temp
endBlock
Clone this wiki locally