Variable Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Variable Definitions and Operations >

Variable Commands

IVP. / NVP. - If-Variable-Pattern

Previous Top Next


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:

 

    1.6.1. Program Flow Control

    IWC. / NWC. - If Wildcard Pattern

    1.5. Features and Hints

    IWS. / NWS. - If Window State

    IVC. / NVC. - If-Variable-Contains

    ELS. - ELSE

    EIF. - END IF

    CAL. - mathematical CALculation

    IVV. / NVV. - If Variable Value