<< Click to Display Table of Contents >> Navigation: 3. Script Language > SCS. - Select from Mutiple Cases > Variable Commands |
MiniRobotLanguage (MRL)
SIF. - String IIF
Return one of several Strings depending on an number
Intention
Conditional Statement for selecting one of multiple string elements based on a given index.
Syntax
SIF.P1|P2|P3|P4[|P5...P27]
Parameter Explanation
•P1 - Index number to select which string element to return.
•P2 - Variable to store the returned string element.
•P3 - First string or string variable.
•P4 - Second string or string variable.
•P5 to P27 - (optional) Additional string elements.
Example
'***********************************
' IRS.-Sample
'***********************************
VAR.$$IDX=2
VAR.$$VAR1=Apple
VAR.$$VAR2=Banana
SIF.$$IDX|$$RES|$$VAR1|$$VAR2
DBP.$$RES
Remarks
-
Limitations:
-
See also:
•