christofurr Posted June 18, 2007 Share Posted June 18, 2007 Can if statements evaluate more than one condition? <?php if ($blah1 < $blah2 && $blah2 < $blah3 && $blah3 == $blah1) {echo "Oh, hell naww!";} ?> Quote Link to comment https://forums.phpfreaks.com/topic/56005-quick-question/ Share on other sites More sharing options...
pocobueno1388 Posted June 18, 2007 Share Posted June 18, 2007 Yes it can your code looks valid to me.... Are you having issues with it? Quote Link to comment https://forums.phpfreaks.com/topic/56005-quick-question/#findComment-276601 Share on other sites More sharing options...
christofurr Posted June 18, 2007 Author Share Posted June 18, 2007 No, actually that was just an example. Wanted to make sure you knew what I meant. Thanks!! Quote Link to comment https://forums.phpfreaks.com/topic/56005-quick-question/#findComment-276613 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.