Raised This Month: $ Target: $400
 0% 

switch case


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 08-02-2014 , 08:00   switch case
Reply With Quote #1

hey guys, im not home, im writting from my mobile , im wondering if this is possible:
PHP Code:
switch(something) {
case 
1random;
case >
1other function;

Or should i use if statements?

Thank you for helping the spam addicted
__________________

Check out My Plugins:
qServerInfo ; ASKTAG

Last edited by quark; 08-02-2014 at 08:02. Reason: misspeled
quark is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-02-2014 , 08:24   Re: switch case
Reply With Quote #2

You must use an if statement
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 08-02-2014 , 12:07   Re: switch case
Reply With Quote #3

well that sucks, thanks
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 08-02-2014 , 12:49   Re: switch case
Reply With Quote #4

Or you can use 'default' as an "else" statement in switches. I mean, if the case is not 1, the default is: //Do something.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 08-11-2014 , 19:39   Re: switch case
Reply With Quote #5

hm, i will try thank you
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
Reply



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 06:03.


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