How to exit of actual iterration of while?

  • Hi
    I am in while loop and i have if statment there. If True then skip rest of instruction and go to next iterration of this while. Is there any function for that?
    I nerd something like continue in c++ if u know.
    I think i can do it with Goto to the end of loop but maybe is other posibility?

  • But, if I'm guessing right, maybe Your problem will be solved by EXIT instruction.


    From KSS 8.3 System Integrator Manual:




    Code
    The loop is exited when $IN[1] is set to TRUE. The program is then continued after ENDLOOP.
  • [size=2]EXIT command exits loop. then next instruction is processed AFTER end of loop.[/size]
    [size=2]so you may want to put another loop around it or use GOTO for example[/size]


    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

Advertising from our partners