Gayner Posted August 26, 2009 Share Posted August 26, 2009 Here is my code: if ($ibforums->member['skinstyle'] == "") $lolnoskin = "0"; Now i want to put AND if ($ibforums->member['monkskin'] == "") in the same IF function so it would be like this: if ($ibforums->member['skinstyle'] == "") AND if ($ibforums->member['monkskin'] == "") ? I want to beable to use AND Statement in my IF Function, help, thx Link to comment https://forums.phpfreaks.com/topic/171898-solved-quick-php-if-and-statement/ Share on other sites More sharing options...
guyfromfl Posted August 26, 2009 Share Posted August 26, 2009 if (($ibforums->member['skinstyle'] == "") && ($ibforums->member['monksink'] =="")) { } Link to comment https://forums.phpfreaks.com/topic/171898-solved-quick-php-if-and-statement/#findComment-906404 Share on other sites More sharing options...
Gayner Posted August 26, 2009 Author Share Posted August 26, 2009 if (($ibforums->member['skinstyle'] == "") && $ibforums->member['monksink'] =="") { } I thought u would use "AND" OMG that is epic, thanks alot for your help, man im learning php so simplier cause of phpfreaks i love it, thanks guys! Topic Solved! Link to comment https://forums.phpfreaks.com/topic/171898-solved-quick-php-if-and-statement/#findComment-906405 Share on other sites More sharing options...
guyfromfl Posted August 26, 2009 Share Posted August 26, 2009 for future reference && = and || = or Link to comment https://forums.phpfreaks.com/topic/171898-solved-quick-php-if-and-statement/#findComment-906406 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.