en:goto [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:goto

## Goto (Statement)

### Format

goto label

### Description

Jumps to the specified label.

### Example

    print "I";
    goto skipit
    print " don't";
    skipit: #
    print " want cookies."

will print

    I want cookies.

### See Also

Begin Case / Case / End Case, Call, Continue Do, Continue For, Continue While, Do / Until, End, Exit Do, Exit For, Exit While, For / Next, Function, Global, Goto, Gosub, If Then, Pause, Ref, Rem, Return, Subroutine, While / End While

### Notes

As of version 0.9.9.2 Goto, Gosub, and labels can not be used in Function and Subroutine definitions.

en/goto.txt · Last modified: 2014/02/09 20:42 by admin