REPS is a CAOS command controlling flow.


REPS n (int) .. REPE

This creates a bounded loop. REPS opens the loop block and REPE closes it again. The loop block is repeated n times, and then execution continues at the point after REPE.


Output the factorial of va00:

SETV va01 1
REPS va00
  MULV va01 va00
  SUBV va00 1
OUTV va01

See also

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.