Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.

Conditional While loops in RAPID, syntax help

newguy1
newguy1
edited April 2018 in Developer Tools
Hello everybody, 
I am doing school project in robotstudio and in one part of my code, I need to get back at the beginning of the loop while and I don't know how to do it.
cause I need to have 2 while loop procedured like - part of one is done, for some conditions, then part of the other is done for some conditions. then i want to change the conditions and run it again. like this:
WHILE - some conditions - DO
WHILE 2 - some conditions 2 -DO
...
ENDWHILE 2
WHILE 3 - some conditions 3 DO
...
ENDWHILE3

here I changed the conditions 2 and 3 so the loops while 2 and 3 and be done again. and i need that to run my programm, but i dont know how to do it, is there some function to this or some way?

ENDWHILE

(Btw i know the syntax Isnt like this, but i know other things and it's pretty long, so I made it like this, so you have idea what am I talking about but  and so it's simple for you)
And I know it might be dumm and there might be better way to do this, but I am learning all of it just from home alone, so please excuse me.

Thank you very much :)
Post edited by OskarHenriksson on
Tagged:

Comments