Blitz Basic 2 - Reference Guide-ENG

Page 15

See Also: Case, Default, End Select

Statement: Case Syntax: Case Expression Modes: Amiga/Blitz Description: A Case is used following a Select to execute a section of program code when, and only when, the Expression specified in the Case statement is equivalent to the Expression specified in the Select statement. If a Case statement is satisfied, program flow will continue until the next Case, Default or End Select statement is encountered, at which point program flow will branch to the next matching End Select. See Also: Select, Default, End Select

Statement: Default Syntax: Default Modes: Amiga/Blitz Description: A Default statement may appear following a series of Case statements to cause a section of program code to be executed if NONE of the Case statements were satisfied. See Also: Select, Case, End Select

Statement: End Select Syntax: End Select Modes: Amiga/Blitz Description: End Select terminates a Select ... Case ... End Select sequence. If program flow had been diverted through the use of a Case or Default statement, it will continue from the terminating End Select. See Also: Select, Case, Default

1-9


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.