Difference between revisions of "Switch Statement"

From Second Life Wiki
Jump to navigation Jump to search
 
m
Line 1: Line 1:
Basic C switch statement.  This would be especially useful for cycling through constants that don't overlap with each other.  (i.e. TYPE_* or ATTACH_*)
Basic C switch statement.  This would be especially useful for cycling through constants that don't overlap with each other.  (i.e. TYPE_* or ATTACH_*)
mod:Sedric Raymaker-- it would also cut down on huge nested if statements, little surprised is not available, but can work around for now

Revision as of 21:04, 7 April 2007

Basic C switch statement. This would be especially useful for cycling through constants that don't overlap with each other. (i.e. TYPE_* or ATTACH_*)

mod:Sedric Raymaker-- it would also cut down on huge nested if statements, little surprised is not available, but can work around for now