The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
No more iff() ?
I need to add quite a few conditions to a query of mine and it seems that 3.5 no longer uses the iff() function? Was this taken out completly or just replaced? I'm searching the /includes/functions.php file now for answer. Thanks guys.
Well i searched the functions.php file and and of course on line 57 it's there. Sorry for the useless post. Need to search before i open my big texteditor next time. |
#2
|
||||
|
||||
iif() is now deprecated.
Use ($condition) ? $texttrue : $textfalse instead. |
#3
|
|||
|
|||
Hey KirbyDE, from the looks of the function, they didn't change anything. At least i don't see a change when i compair the function from 3.0.7 to 3.5.0.
|
#4
|
||||
|
||||
iif() is just a shortcut for the ternery operator
|
#5
|
||||
|
||||
the ? : operator is default in php, the iif was never really needed, so they might have decide to don't use it anymore then
|
#6
|
|||
|
|||
Quote:
|
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
Hehe
/me happy that I never used VB much. |
#9
|
||||
|
||||
nice explanation, never thought of that ^^
[high]* Xenon hasn't used visual basic often, C++ was my world [/high] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|