Conditional Commands - do.until, do.while

do.until and do.while are effectively the same as until and while except that the <action> and <condition> are reversed.

Using until  and while

General form:
do.until [action][condition]
do.while [action][condition]

make "count 1
do.until [print :count  make "count  :count + 1][:count > 10]
  .... produces: 1 2 3 4 5 6 7 8 9 10

make "count 1
do.while [print :count  make "count  :count + 1][:count < 10]
  .... produces: 1 2 3 4 5 6 7 8 9

NOTE: There can be many 'actions' in the square brackets including procedures.

<- Back -Menu- Next ->