Multiple Choice Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > SCS. - Select from Mutiple Cases >

Multiple Choice Commands

ESC. - End-Select-Case

Previous Top Next


MiniRobotLanguage (MRL)

 

ESL. Command

End Select Loop

 

 

The ESL.-Commandreplaces the ESC.-Command in a SCS. ... CAE. ...  ESC.  Construct.

In case the Program did not match ANY of the given Conditions, the ESL. will jump back to the SCS.

If there was a condition, ESL. will exit the Construct and continue with the Script.

 

Do not use CAE. if you use ESL. Otherwise the ESL. will take the CAE. as a valid Option and end the Construct.

 

This command can be used together with:

    SCS.

    CAN.

    CAE. - do not use CAE. if you use ESL.

    CAS.

    CFP.

 

to build  multiple-choice constructs.

 

ESC. (End Select Case) will close the multiple choice decision block.

 

See example below.

 

STW.Act|TFrmHelpMan|- Help

$$PA1=?pattern\Tabelle.bmp

$$PA2=?pattern\SCS02.bmp

$$PA3=?pattern\JK_8.bmp

SCS.1

 CFP.$$PA1

  MBX.Pattern found: $$PA1

 CFP.$$PA2 

  MBX.Pattern found: $$PA2

 CFP.$$PA3

  MBX.Pattern found: $$PA3

ESL.

MBX.OK

ENR.

 

 

 

 

Syntax

 

ESL.

 

 

Parameter Explanation

 

this command takes no parameters.

 

 

Speed in Ticks:

-

 

 

Example

 

'********************************************

' ESL. Sample

'********************************************

 

STW.Act|TFrmHelpMan|- Help & Manual

 

$$PA1=?pattern\Tabelle.bmp

$$PA2=?pattern\SCS02.bmp

$$PA3=?pattern\JK_8.bmp

NEF.$$PA1

  MBX.File existiert nicht: $$PA1

EIF.

SCS.1

CFP.$$PA3

  MBX.PA3

CFP.$$PA1 

  MBX.PA2

ESL.

MBX.OK

ENR.

 

 

 

 

Remarks

 

Please do not write code between the SCS. and the first following CAS./CAN./CFP.

While the code will actually be executed, you could get memory-leaks if you jump out of the construct from that place.

 

 

 

Limitations:

-

There are no relevant nesting limitations.

Please always make formulas into () or they may not be calculated.

 

 

 

See also:

 

  1.6.1. Program Flow Control

  1. SCS. - Select Case

  2. CAS. - Case-String

  3. CAN. - Case-Numeric

  4. CAE. - Case-Else

   5.CFP. - Case Find Pattern

   6.ESL. - End Select Loop

   7.ESC. - End Select Case