Page 1 of 1

if statement

Posted: Sun Oct 11, 2009 4:05 pm
by robertbarzyk
is there a way to do an if statement something like this
if ( $points>0 AND <30 ) {

i want the if statement to execute the code, if its between 0-30

Re: if statement

Posted: Sun Oct 11, 2009 4:06 pm
by markusn00b
robertbarzyk wrote:is there a way to do an if statement something like this
if ( $points>0 AND <30 ) {

i want the if statement to execute the code, if its between 0-30
Yes:

Code: Select all

 
if ($points > 0 && $points < 30) {
 
}