Branching Statements: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 22: Line 22:
;[[RETURN]] (RETU)
;[[RETURN]] (RETU)
Ends a subroutine and returns control to the statement after the calling GOSUB.
Ends a subroutine and returns control to the statement after the calling GOSUB.
<noinclude>
[[Category:Summary of Statements]]
</noinclude>

Latest revision as of 01:11, 16 July 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.

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.