2014-12-08 12:43:20 +13:00
< html >
< head >
< title > Blitz3D Docs< / title >
< link rel = stylesheet href = ../css/commands.css type = text/css >
< / head >
< body >
< h1 > End Select< / h1 >
< h1 > Parameters< / h1 >
< table >
< tr >
< td >
None.
< / td >
< / tr >
< / table >
< h1 > Description< / h1 >
< table >
< tr >
< td >
This command ends the SELECT structure. If you are using DEFAULT commands, this is the ending point of that command set's execution. See SELECT, CASE, and DEFAULT for more information.
< / td >
< / tr >
< / table >
< h1 > < a href = ../2d_examples/End Select . bb > Example< / a > < / h1 >
< table >
< tr >
< td >
; SELECT/CASE/DEFAULT/END SELECT Example
< br / >
; Assign a random number 1-10
< br / >
mission=Rnd(1,10)
< br / >
< br / >
; Start the selection process based on the value of 'mission' variable
< br / >
Select mission
< br / >
< br / >
; Is mission = 1?
< br / >
Case 1
< br / >
Print "Your mission is to get the plutonium and get out alive!"
< br / >
< br / >
; Is mission = 2?
< br / >
Case 2
< br / >
Print "Your mission is to destroy all enemies!"
< br / >
2014-02-26 16:08:39 +13:00
< br / >
2014-12-08 12:43:20 +13:00
; Is mission = 3?
2014-02-26 16:08:39 +13:00
< br / >
2014-12-08 12:43:20 +13:00
Case 3
2014-02-26 16:08:39 +13:00
< br / >