Branching Statements: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
;[[END IF]] (EN IF) | |||
Works in conjunction with IF to transfer control or execute statements on the basis of a conditional expression. | |||
;[[ELSE]] (EL) | |||
Works in conjunction with IF to transfer control or execute statements on the basis of a conditional expression. | |||
;[[GOSUB]] (GOS) | |||
Unconditionally transfers program control to a subroutine. | |||
;[[GOTO]] (GOT) | |||
Unconditionally transfers program control to a line or label. | |||
;[[IF]] | |||
Transfers control or execute statements on the basis of a conditional expression. | |||
;[[ON GOSUB]] (ON GOS) | |||
Conditionally transfers control to one of a list of subroutines. | |||
;[[ON GOTO]] (ON GOT) | |||
Conditionally transfers control to one of a list of lines. | |||
;[[RETURN]] (RETU) | |||
Ends a subroutine and returns control to the statement after the calling GOSUB. |
Revision as of 21:52, 6 February 2013
- END IF (EN IF)
Works in conjunction with IF to transfer control or execute statements on the basis of a conditional expression.
- ELSE (EL)
Works in conjunction with IF to transfer control or execute statements on the basis of a conditional expression.
- GOSUB (GOS)
Unconditionally transfers program control to a subroutine.
- GOTO (GOT)
Unconditionally transfers program control to a line or label.
Transfers control or execute statements on the basis of a conditional expression.
- ON GOSUB (ON GOS)
Conditionally transfers control to one of a list of subroutines.
- ON GOTO (ON GOT)
Conditionally transfers control to one of a list of lines.
- RETURN (RETU)
Ends a subroutine and returns control to the statement after the calling GOSUB.