Universal Robots Forum

Jump Instruction or Continue


How can I do jumping inside the code, do we have any possibility to do that. or doing something like continue if I am inside the loop


We owuld need a lot more information to give you a precise answer, but in short yes. If you are working in URScript, then you can use if(condition): to “jump” sections of code you do not wish to run under particular circumstances, for example if an input is high. Alternatively you can define functions that can be called in given situations with def(arguments).

There is also the if/else program node which allows you to evaluate conditions at a polyscope level that can be inserted into the program tree.

I suggest you have a read through the Flow of Control section at the start of the script manual to learn more about conditional code. These principles will also apply to the if/else nodes in polyscope.