RON_ron Posted November 17, 2010 Share Posted November 17, 2010 How to write 2 "if" statements together? if($userResult==$myResult) and ($userResult<0) { Link to comment https://forums.phpfreaks.com/topic/218922-having-2-if-statements/ 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 Link to comment https://forums.phpfreaks.com/topic/218922-having-2-if-statements/#findComment-1135343 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.