Raised This Month: $ Target: $400
 0% 

switch() & case


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
capndurk
Senior Member
Join Date: Feb 2006
Old 03-25-2006 , 17:00  
Reply With Quote #3

Quote:
Originally Posted by Werewolf
Should work. Example:
Code:
if(case 1: || case 2:) { //function }
I don't know if it works but it is worth to try... If not someone says "It won't work"
I know, but i just wanted to avoid doing if statements because they can get kind of ugly with 4 difference cases, and then a default case.
capndurk is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode