# Jump Instruction or Continue

**URL:** <https://forum.universal-robots.com/t/jump-instruction-or-continue/10090>\
**Category:** Technical Questions\
**Tags:** polyscope\
**Created:** [November 18, 2020, 3:02pm UTC](https://forum.universal-robots.com/t/jump-instruction-or-continue/10090 "2020-11-18T15:02:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon95178801](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@anon95178801](https://forum.universal-robots.com/u/anon95178801)\
**Post date:** [November 18, 2020, 3:02pm UTC](https://forum.universal-robots.com/t/jump-instruction-or-continue/10090/1 "2020-11-18T15:02:28Z")

</div>

Hello,

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

Thanks,  
Elsayed

---

<div class="post-metadata">

**Author:** ![sam.verity-hilton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/sam.verity-hilton/32/6046_2.png) [@sam.verity-hilton](https://forum.universal-robots.com/u/sam.verity-hilton)\
**Post date:** [November 18, 2020, 3:29pm UTC](https://forum.universal-robots.com/t/jump-instruction-or-continue/10090/2 "2020-11-18T15:29:09Z")

</div>

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.
