# Is there a Goto Command?

**URL:** https://forum.universal-robots.com/t/is-there-a-goto-command/19289
**Category:** General Application Help: How do I?
**Created:** [February 15, 2022, 2:07pm UTC](https://forum.universal-robots.com/t/is-there-a-goto-command/19289 "2022-02-15T14:07:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nnaylor](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@nnaylor](https://forum.universal-robots.com/u/nnaylor)
#### Post date: [February 15, 2022, 2:07pm UTC](https://forum.universal-robots.com/t/is-there-a-goto-command/19289/1 "2022-02-15T14:07:55Z")

</div>

Is there any way to implement a goto-type of command? Currently running a CB series. I have a program that glues 3 parts. I want to be able to glue just 1, just 2, or all 3 cases. I’m pretty sure I can break the main program into 3 separate subprograms and then call out each one using a switch case, but I’m hoping to not have to use multiple subprograms.

---

<div class="post-metadata">

### Author: ![anon37981104](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@anon37981104](https://forum.universal-robots.com/u/anon37981104)
#### Post date: [February 15, 2022, 2:18pm UTC](https://forum.universal-robots.com/t/is-there-a-goto-command/19289/2 "2022-02-15T14:18:26Z")

</div>

Hi, you can use some IF…ELSE statements to choose which parts of the program to run but it is often simpler just to use the switch case.
