Flow (CAOS)

Flow is a concept in coding which determines the order in which instructions are read and executed by the computer, similar to the order of operations in mathematics (see Control flow). Flow involves conditionals and subroutines, or may allow the selection of a certain TARGet object.

In CAOS, commands which are used to control the execution flow of commands include:

Routine and coroutine

 * STOP
 * ENDM
 * SUBR
 * GSUB
 * RETN
 * INST
 * WAIT

Iteration

 * REPS
 * REPE
 * LOOP
 * UNTL
 * EVER
 * ENUM
 * NEXT

Random sampling

 * RTAR
 * RNDV

Conditional

 * DOIF
 * ELSE
 * ENDI

Arithmetic

 * ADDV
 * SUBV
 * MULV
 * DIVV
 * MODV
 * NEGV
 * ANDV
 * ORRV

Debug

 * DBUG
 * DBGM - in prerelease versions of C1

C2
In Creatures 2, ESEE and ETCH were added to work in pairs with NEXT, as were STAR, ESCN and its closing NSCN.

C3/DS
GOTO and ELIF were added.