|
Looping
Sept 5, 2012 13:30:47 GMT -5
Post by Admin on Sept 5, 2012 13:30:47 GMT -5
$var ok 2; #loop 5; 'ok=3*'ok; #say 'ok !; #endloop;
Functions inside the #loop ...; - #endloop; will be called #loop... times. In this example, 'ok='ok*3; #say 'ok !; will be called 5 times. Each time the value of 'ok will be multiplied 3 times its past value.
Prototype: #loop [value/variable]; Code to execute #endloop;
|
|