View Single Post
  #202  
Old October 17th, 2006, 11:48 AM
AngleWyrm's Avatar

AngleWyrm AngleWyrm is offline
Second Lieutenant
 
Join Date: Mar 2005
Location: Seattle, WA
Posts: 417
Thanks: 0
Thanked 0 Times in 0 Posts
AngleWyrm is on a distinguished road
Default Case statements

About the case statement of the form:

case my_var
1:
2:
call Task_One
3:
call Task_Two
endcase

1). if my_var = 1, does it call Task_One?
----- Invalid (empty) case statement; won't compile
2). if my_var = 2, does it also call Task_Two?
----- No.
3). if my_var = 0, does it skip both tasks?
----- Yes.
Reply With Quote