# exit

## Syntax

    exit

## Description

This command allows you to break from a program loop at any time. Only control loops that have an uncertain exit condition can use this command such as do loop, while, for and repeat loops. exit will have no effect on goto loops during the running of your program.

## Example

    do
        if GetPointerPressed ( ) = 1
            exit
        endif
    loop