The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Can you have multiple conditions for an if statment? The below ignores both.
Code:
if ($action=="selectuser, attack") {
|
|
#2
|
||||
|
||||
|
Use "logical" conditions.
The '&&' = AND The '||' = OR ... so in your case : PHP Code:
|
|
#3
|
|||
|
|||
|
Thank You
|
|
#4
|
||||
|
||||
|
if you have a lot of those conditions this would look better:
PHP Code:
|
|
#5
|
|||
|
|||
|
in_array
|
|
#6
|
||||
|
||||
|
thx filburt...
i should type a bit slower next time
|
|
#7
|
||||
|
||||
|
Nice tips, Xenon.
|
|
#8
|
||||
|
||||
|
thx
it's just an aesthetic tip, but also for modifyinbg and adding new values it's usefull. i've decided to use this function more often in all my future hacks |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|