The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Foreach loop with vb condition on multidimensional array
Long title, heh.
I have a foreach loop iterating through a predefined multidimensional array. Code:
<vb:each from="bans" key="banid" value="k"> <vb:if condition="$bans.$k['duration'] != False"> <td>{vb:raw k.ban_duration}</td> <vb:else /> <td>∞</td> </vb:if> </vb:each> I have tried the following $bans[$banid]['duration'], $bans['banid']['duration'], $bans[banid]['duration'], $bans[$banid].duration, etc., I have been at it for hours and can't seem to get it to evaluate properly. I have also tried different options using $k['duration'], etc. If anyone can shed some light on this it would be greatly appreciated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|