Raised This Month: $ Target: $400
 0% 

switch()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 01-11-2007 , 13:07   Re: switch()
Reply With Quote #3

Yep that is right.

With the cases you can also do ranges:

Code:
new temp switch (temp) {    case 1 .. 5:    {       // do something    }    default:    {       // do something else    } } // You can also do new temp[12] = "hello world" switch (temp[0]) {    case 'h':    {       // do something    } }
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz 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 22:27.


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