<< Click to Display Table of Contents >> Navigation: 3. Script Language > Variable Definitions and Operations > Variable Commands |
MiniRobotLanguage (MRL)
IVP. Conditional Statement
If Variable Pattern
Intention
Conditional Statement.
Test if a specified string evaluates true with a given 3.2 Standard-Search Pattern.
NVP. is the negative Form of this statement.
Syntax
IVP.P1=P2 … ELS. … EIF.
Parameter Explanation
P1 - Variable = Variable/Pattern
must be a Variable or Stack, Length=5
P2 - Pattern to compare with
Important: Only P2 can be a Pattern!
P1 must always be a variable.
P2 can be variable or Text and must be the Pattern.
IVP.'s can be nested to unlimited Depth, and they can also enclose Sub-Programm Calls or FEX. (Enumerations) to unlimited Depth.
Example
'***********************************
' IVP.-Test
'***********************************
'DBM.2
'JNF.Move-Console.txt
: §§TXG=Outlook 2003 - Posteingang
: §§TXI=Outlook 2003 - Inbox
: §§PAT={Outlook&AND:{Posteingang&OR:Inbox}}
' First we test against the german version
IVP.§§TXG=§§PAT
PRT.Pattern german Ok.
ELS.
PRT. Pattern does not fit german.
EIF.
' Next we test against the intl. version
IVP.§§TXI=§§PAT
PRT.Pattern intl. Ok.
ELS.
PRT. Pattern does not fit intl. .
EIF.
DMP.
END.
Remarks
-
Limitations:
-
See also:
• IWC. / NWC. - If Wildcard Pattern
• IWS. / NWS. - If Window State
• IVC. / NVC. - If-Variable-Contains
• CAL. - mathematical CALculation
• IVV. / NVV. - If Variable Value