Branching Statements: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(Redirected page to Category:Branching Statements)
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT[[Category:Branching Statements]]
;[[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.
 
<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.