Swap

Family: Core · One form

What it does

Swap takes no arguments, and returns nothing.

Syntax

Swap()

Parameters

No parameters.

Every form returns

nothing

Example · generated

Swap()DO  Sync()LOOP

Swap is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

200 commands in Core