Conditional While loops in RAPID, syntax help

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 :slight_smile:

Not really clear as to what you need, can you elaborate some more? Rephrase it, more info?

@newguy1 , I’ve rephrased your title since it was totally inapropriate.
By describing your problem you will get help, not by “sceraming”.

By googling “RAPID loop” i found the following: http://developercenter.robotstudio.com/BlobProxy/manuals/IntroductionRAPIDProgOpManual/doc13.html
I think that will help you.

EDIT: Describing what type of conditions you have and how you want to change them is crucial for anyone to help you out.
Is it enough to have a num variable that changes value in-between each run?

Good luck!
/Oskar

Are you searching for the Test CASE command ?