The Arcive of vBulletin Modifications Site. |
|
#1
|
||||
|
||||
![]()
Ok here is what i need, i have a column named "votecount" and i want to make an if statement like this:
PHP Code:
|
#2
|
|||
|
|||
![]()
I might not understand what your asking but would this work?
PHP Code:
|
#3
|
||||
|
||||
![]() Quote:
but thanks anyway, |
#4
|
||||
|
||||
![]() Quote:
|
#5
|
|||
|
|||
![]()
hi,
carefull here === means something else then == === identical to ..... == equal to ciao |
#6
|
|||
|
|||
![]()
Just use,
if (!$votecount) { } |
#7
|
||||
|
||||
![]() Quote:
the !$votecount ? |
#8
|
||||
|
||||
![]()
! means not - In this case you could translate !$variable as "$variable is empty or null"
![]() === means exactly equal to and is only used in PHP ![]() Chris |
#9
|
||||
|
||||
![]()
If you really want to convert it to zero, use $votecount = intval($votecount);
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|