The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
How should I formulate an if condition based template snippet where two if conditions should be true?
I've tried the following, but it doesn't seem to work: HTML Code:
<if condition="$userinfo[field26]=='Yes'" AND "in_array($bbuserinfo['userid'], $mybuddies)"> Conditions true </else> Conditions false </if> -Mika |
#2
|
||||
|
||||
![]()
<else />
condition="$userinfo[field26]=='Yes' AND in_array($bbuserinfo['userid'], $mybuddies)" You need both statements within the same quotes. You had seperate ones "for" "each" which will not work "they both" need to be in the quotes to evaluate as part of that condition. |
#3
|
||||
|
||||
![]() Quote:
I feel such a... noob! lol. |
#4
|
||||
|
||||
![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|