The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
## PHP Question ##
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);
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|