if statement

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
robertbarzyk
Forum Newbie
Posts: 19
Joined: Tue Oct 06, 2009 4:12 pm

if statement

Post 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
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Re: if statement

Post 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) {
 
}
 
Post Reply