Loop
Play a set of steps(steps block) quoted with the instruction 'Loop' and 'End loop' for a number of times.
A. Loop a number of times
Click here to show the figure
Parameters
B. Loop through a range
Click here to show the figure
Parameters
-
Initial value of counter Specifies the number for the initial value of the counter.
-
Final value of counter Specifies the number for the final value of counter.
-
Increment or decrement by step Specifies the step value for each time through the loop.
-
Variable for intermedial counter value Specifies a variable to store the intermedial counter value.
C. Loop if variable
Click here to show the figure
Loop until the expression is FALSE.
Parameters
-
Variable name Specifies the name of the variable which should be evaluated.
-
Comparison operator Specifies the operator.
-
Value for comparing Specifies the value expression for comparing with the variable.
-
As string value to evaluate Specifies whether to convert the variable to a string before evaluating.
Note:
In the case 'Loop through a range', you may specify the 'step value' less than the number 0 to decrease
the counter value each time the loop repeats.
|