Futurebasic/Language/Reference/on expr goto

From Wikibooks, open books for an open world
< Futurebasic | Language | Reference
Jump to: navigation, search

Contents

[edit] ON <expr> GOTO

[edit] Statement

(+) Appearance (+) Standard (+) Console

[edit] Syntax

ON expr GOTO {"label1"|lineNum1}[,{"label2"|lineNum2}...]

[edit] Description

This statement jumps to one of the indicated label 's or lineNum 's, according to the value of expr. If expr equals 1, then the program jumps to label1 or lineNum1; if expr equals 2, then the program jumps to label2 or lineNum2, and so on. If expr is less than 1, or greater than the number of label 's and lineNum 's in the list, then the ON <expr> GOTO statement does nothing.

[edit] See Also

GOTO; ON <expr> GOSUB; SELECT

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export