1. Condition branch:
It can be used to implement in two ways of ... EL ... ENC.
VAR
I: integer;
Begin
IF I> 0 THEN
Dosth
Else I <0 THEN
Dosth
Else
Dosth
END;
-------------------------------------------------
Note: When using IF, the ELSE (including the else IF) keyword cannot be included before; "
-------------------------------------------------- -
Case mode:
VAR
I: integer;
Begin
Case I of
1:
Dosth
2, 3:
Dosth
4..10: {if
Dosth
END;