The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
can you have multiple evaluation in a template conditional?
I have the following php code that I'm trying to convert into a template conditional. Can this be done?
PHP Code:
HTML Code:
<if condition == "$firstGameTime != $cutoffDateTime && !firstGameExpired"> <div id="firstGame" class="countdown"></div> </if> |
#2
|
||||
|
||||
You would write it as (only a single = after the condition):
HTML Code:
<if condition="$firstGameTime != $cutoffDateTime && !firstGameExpired"> <div id="firstGame" class="countdown"></div> </if> |
#3
|
||||
|
||||
Code:
<if condition="$firstGameTime !== $cutoffDateTime && !$firstGameExpired"> |
#4
|
||||
|
||||
Interesting...... here are the differences in the two operators from this page:
Code:
$a != $b Not equal TRUE if $a is not equal to $b. $a !== $b Not identical TRUE if $a is not equal to $b, or they are not of the same type. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|