5238-E P-270
SECTION 12 USER TASK
3-1-1. GOTO Statement (Unconditional Branch)
[Programming format]
LE33013R0301400070001
[Function]
Program execution jumps unconditionally to the block indicated by N1 and that block is executed.
[Details]
The N1 block must be in the same program as the block containing the control statement.
3-1-2. IF Statement (Conditional Branch)
[Programming format]
LE33013R0301400080001
N0
N1
GOTO
Indicates the sequence name of the
block that is the jump destination (mandatory).
Sequence name of this block (can be omitted)
Indicates a "GOTO" statement.
N0
IF
GOTO
<Conditional expression>
N1
Sequence name of this block (can be omitted)
Indicates an "IF" statement
(1)
There are two possible results of the comparison
operation; "true" and "false". The conditional expression
must be enclosed in square brackets.
GOTO statement command to be executed if the
conditional expression is true (can be omitted)
Sequence number of the block to be the jump
destination if the conditional expression is true.
Mandatory.
N0
IF
GOTO
<Local variable>
N1
(2)
This can be used instead of a conditional expression.
Branching occurs or not depending on whether the
variable is defined or not.
Sequence number of the block to be
the jump destination if the variable is
defined. Mandatory.
GOTO statement command to be executed
if the variable is defined (can be omitted)