The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
having some problems with an if condition + forumula
I've got a formula to work out a percentage from user fields, which is the postbit_display_start hook the formula looks like this:
Code:
$percentage = (intval($post['field7']) / intval($post['field6'])) * 100; So what I'm trying to do is add an if conditional to just display 0 if field 6 is 0 Here's what I've got Code:
$percentage = <if condition = "(post['field6']))=0">0 </if> <else />(intval($post['field7']) / intval($post['field6'])) * 100; |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|