4.6.8.2
If-ElsIf control structure / If-ElsIf-Else control structure
The If-Else control structure was expanded in Create MyConfig V4.7. After the If condition
alternative conditions can be checked by specifying ElsIf or ElIf.
The operation block is executed after the first fulfilled condition. The operation block after Else
is executed if no condition is fulfilled.
Conditional execution - If ... ElsIf... Else... EndIf
Note
For the alternative conditions, the keywords "ElsIf" and "ElIf" are used as equivalents.
The control structure allows the conditional execution of different operation blocks dependent
on whether the "exp" condition is fulfilled or not.
If this is fulfilled (true), then the first operation block "block_1" is executed, otherwise it is
checked whether the second alternative condition "exp_2" is fulfilled or not.
If this is fulfilled (true), then the second operation block "block_2" is executed, otherwise it is
checked whether the next alternative condition "exp_3" is fulfilled or not.
If this is fulfilled (true), then the third operation block "block_3" is executed, and so on.
Once a condition or alternative condition is fulfilled, the associated operation block is executed
and then the execution continues after the associated keyword "EndIf".
As long as the condition or alternative condition is not fulfilled, the subsequent alternative
condition is checked.
If no alternative condition is fulfilled, the operation block "block_E" in the alternative branch
is executed after the keyword "Else".
If no alternative branch "Else" was specified, then processing is continued after the keyword
"EndIf" without executing an operation block.
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 11/2016, A5E36537479B-AD
If exp
block_1
ElsIf exp_2
block_2
ElsIf exp_3
block_3
...
Else
block_E
EndIf
Create MyConfig - Expert
4.6 Script language
251