Page 1 of 1

PHP Addition?

Posted: Fri Jul 27, 2007 2:54 pm
by thefreebielife
For example,

Code: Select all

 if ($count2 $ostatus >= $gref
I need it to be that if count2 AND ostatus added together are greater then or equal too.

Thanks,
Jared

Posted: Fri Jul 27, 2007 2:59 pm
by Chalks

Code: Select all

if(($count2+$ostatus)>=$gref)
{
//do stuff
}

edit: at least, that's what I'm assuming. I'm still new enough to php that I haven't actually had to do that yet...
edit 2: try it! :D