# GOTO

> [HTML Version](goto.htm)

_Added June 2023_

| | |
|------|------|
| **GOTO ####** | **\! go to line #### (deprecated)** |
| **GOTO <label>** | **\! go to specified label** |
| **GOTO @<variable>** | **\! indirect go to** |


The GOTO statement transfers control to the specified line number or label. The indirect form (third syntax) requires that the specified variable first be assigned to point to the desired label; see following example. 

**Example**

    MAP1 END'PLACE,B,4

    END'PLACE = \*PURGATORY       \! set END'PLACE to point to PURGATORY label

    GOTO ADMISSIONS

...

ADMISSIONS:

    GOTO @END'PLACE              \! go (indirectly) to PURGATORY

    ...

PURGATORY:



**History**

2023 June, A-Shell 6.5.1733:  Add indirect GOTO (third syntax above)