RON_ron Posted November 17, 2010 Share Posted November 17, 2010 How to write 2 "if" statements together? if($userResult==$myResult) and ($userResult<0) { Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted November 17, 2010 Share Posted November 17, 2010 if($userResult == $myResult && $userResult < 0){ // do whatever } See http://php.net/manual/en/language.operators.php More specifically, see http://www.php.net/manual/en/language.operators.logical.php Quote Link to comment 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.