1、 顺序
2、选择:IF和CASE
--------------------
(1) IF语法:
IF <condition1>.
<statement block>
ELSEIF <condition2>.
<statement block>
ELSEIF <condition3>.
<statement block>
.....
ELSE.
<statement block>
ENDIF.
(2) CASE语法:
CASE <f>.
WHEN <F1>.
<statement block>
WHEN <F2>.
<statement block>
WHEN <F3>.
<statement block>
WHEN ...
......
WHEN OTHERS.
<statement block>
ENDCASE.
3、 循环:DO和WHILE
------------------------------------
(1) 计次循环:
DO [<n>TIMES] [VARYING <f> FROM <F1> NEXT <F2>].
<statement block>
ENDDO.
(2) 无限循环:
DO .
<Statement Block>
ENDDO.
(3) 条件循环:
WHILE <condition> [VARY <f> FROM <F1> NEXT <F2>].
<statement block>
ENDWHILE.
* 终止循环:
------------------------------------
① 无条件终止循环:CONTINUE
② 有条件终止循环:CHECK
③ 完全终止循环: EXIT