[DO] (loop block)
[DO] repeats processing that is not dependent on specific information. To terminate the loop, specify the $BREAK embedded function.
Syntax
[DO] data-processing $BREAK() [DO_END]
Values
-
data-processing
Codes the processing to be performed on various data. Processing is performed based on this code.
Example
The following example shows a loop block. This example ends the loop block once COUNT has been output ten times within the loop block:
[SET_VALUE] CNT = 1 [DO] [IF] CNT > 10 [THEN] [SET_VALUE] $BREAK() [IF_END] [SET_VALUE] MSG = ' COUNT = ' + CNT $ECHO(MSG) CNT = $ADD(CNT,1) [DO_END] |