|
|
|
while tfexpression instructionlist
command. Repeatedly evaluates the "instructionlist" as long as the evaluated "tfexpression" remains TRUE. Evaluates the first input first, so the "instructionlist" may never be run at all. The "tfexpression" must be an expressionlist whose value when evaluated is TRUE or FALSE.
While is good if you don't know before the loop how many times the loop should execute, but it's a little bit slower than repeat.
Examples:
a=Int 0 while [a<1000000] [a+=1] pr a ;1000000 while [not key?][pr repcount] |
|
|
|