Using Switch
Monday July 10, 2006
If you are using several If () statements to evaluate the same thing, then you may want to consider using switch () instead. Switch () tests the same variable for several 'cases', and then executes the corresponding code. Optionally, you can have a default case to use if none of your other cases are true.


No comments yet. Leave a Comment