---
title: Flow control
slug: flow-control
docTags: 
createdAt: 2023-12-17T22:55:38.600Z
---

You can use the following flow control commands in a job:&#x20;

**IF\[x]-ELSE-ENDIF** constructs to define x-dependent execution&#x20;

**WHILE\[x]-ENDWHILE** constructs to define x-dependent repeated execution&#x20;

**SUB** \<name>-**ENDSUB&#x20;**&#x63;onstructs to define a subroutine&#x20;

**GOSUB** \<name> construct to call a subroutine&#x20;
