Subroutines

Subroutines are code blocks that you can use to gather code snippets with a common purpose within a single code block. Use subroutines to divide concepts based on task scope. With this division, you can avoid duplicating code blocks in the scripts and reuse these blocks if needed.

Use the Start Subroutine (beginSub) and End Subroutine (endSub) commands to create modular blocks of codes that you can use many times in your script. Call these subroutines by the main subroutine or other subroutines to run specific tasks.