Welcome to the Creatures Wiki! Log in and join the community.

Flow (CAOS)

From Creatures Wiki
Jump to navigation Jump to search

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 wikipedia: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:

C1[edit]

Routine and coroutine[edit]

Iteration[edit]

Random sampling[edit]

Conditional[edit]

Arithmetic[edit]

Debug[edit]

  • DBUG
  • DBGM - in prerelease versions of C1

C2[edit]

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

C3/DS[edit]

GOTO and ELIF were added.