Chapter 4. programming – IAI America S-SEL-E User Manual
Page 190
![background image](/manuals/350298/190/background.png)
Page 185
Chapter 4. Programming
Expansion
(AND·OR)
Input
(Input·Output·Flag)
Command · Statement
Post
(Output · Flag
Command
Operand 1
Operand 2
Optional
Optional
SLCT
Function:
Branches to the next step in the OTHE command if none of the conditions set up by the WHXX, WSXX com-
mands or any commands up to the EDSL command are met.
Example:
SCPY
1
‘right’
:
600
SLCT
WSEQ 1
‘right’
:
WSEQ 1
‘left’
:
OTHE
:
EDSL
Assign ‘right’ to columns 1 through 5.
Since the string in columns 1~5 are equal to ‘right’, the commands
that follow this WSEQ will be executed.
Since the string in columns 1~5 are not equal to ‘left’, the com-
mands that follow this WSEQ will not be executed.
If it is neither, then the commands that follow OTHE are executed.
When flag 600 is OFF, or if any one of the conditions is executed,
then end the select.
2-10 Branch Command
SLCT (Beginning of selected group)
Expansion
(AND·OR)
Input
(Input·Output·Flag)
Command · Statement
Post
(Output · Flag
Command
Operand 1
Operand 2
OTHE
OTHE
(Selected in the case of other)
Function:
This is used between the SLCT ~ EDSL commands. This declares the command to be executed when no other
conditions are met.
Example:
Please refer to SLCT, WHXX and WSXX
Expansion
(AND·OR)
Input
(Input·Output·Flag)
Command · Statement
Post
(Output · Flag
Command
Operand 1
Operand 2
EDSL
EDSL
(End of selected group)
Function:
This declares the end of the SLCT command.
Example:
Please refer to SLCT, WHXX and WSXX