<< Click to Display Table of Contents >> Navigation: 3. Script Language > Miscellaneous commands > Mathematical and algorithmic operations |
MiniRobotLanguage (MRL)
IEM. Conditional Statement
If Execution Mode
Intention
Conditional Statement.
Use this statement to test if:
• if the Robot is running as a compiled executable.
• if the robot is been started as a parallel-robot.
• if the robot is running under Editor control.
NEM. - is the negative form of this statement.
Syntax
IEM.[P1]
Parameter Explanation
P1 - (optional) Condition to test for. If omitted, "1" is used.
Can be any of these:
"1","exe","executable"
Evaluate TRUE if the script is running as a
compiled executable. This is the default value.
"2","editor"
Evaluate TRUE if the script is running from inside
and under control of the Editor.
"3","father","sub-robot","subrobot"
Evaluate TRUE if the script is running as a
Parallelrobot, using the PRR./PRE. Commands.
Example
'***********************************
' IEM.-Sample
'***********************************
'
IEM.1
$$PAT=?exeloc\
ELS.
$$PAT=?path\
EIF.
ENR.
Remarks
-
Limitations:
-
See also: