Loops and repeated Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Loops, and repeated action >

Loops and repeated Commands

CON. - Continue with Loop

Previous Top Next


MiniRobotLanguage (MRL)

 

CON. - Continue with Loop

Continue with FOR./DOL. - Loop (Jump to NEX./ OOP.)

 

 

Intention

 

The CON. command is used to skip the current iteration of a loop and continue with the next iteration.

It can be used with FOR. .. NEX. or DOL. .. OOP. - Loops

It has no parameters. For example:

 

FOR.$$LHA|1|255

  FOR.$$LJA|1|255

    DBP.Looping: $$LHA-$$LJA

    IVV.$$LJA>3

      DBP.Before CON.

      CON.      

      DBP.After CON.

    EIF. 

    DBP.Before NEX.

  NEX.

NEX.

ENR.

 

The Debug Window will show this:

 Looping: 1-1

 Before NEX.

 Looping: 1-2

 Before NEX.

 Looping: 1-3

 Before NEX.

 Looping: 1-4

 Before CON.

 Looping: 1-5

 Before CON.

 Looping: 1-6

 Before CON.

etc.

 

 

Syntax

 

 

CON.

 

 

Parameter Explanation

 

This command has no parameters.

 

 

 

Example

 

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

' IRS.-Sample

'***********************************
 FOR.$$LJA|1|255

    DBP.Looping: $$LHA-$$LJA

    IVV.$$LJA>3

      DBP.Before CON.

      CON.      

      DBP.After CON.

    EIF. 

    DBP.Before NEX.

  NEX.

 

 

 

 

 

 

Remarks

 

The command does not work with OOP.

 

 

Limitations:

 

-

 

 

See also: