Jiraiya Posted April 23, 2009 Share Posted April 23, 2009 i was wondering about "IF" statements if i could have multiple requirements for the if statement? Quote Link to comment https://forums.phpfreaks.com/topic/155341-solved-quick-question/ Share on other sites More sharing options...
jackpf Posted April 23, 2009 Share Posted April 23, 2009 Yes. || = or && = and Quote Link to comment https://forums.phpfreaks.com/topic/155341-solved-quick-question/#findComment-817256 Share on other sites More sharing options...
Jiraiya Posted April 23, 2009 Author Share Posted April 23, 2009 how would that be written like this? if ($row['potions'] >= 1 && $row['gold']>=1) Quote Link to comment https://forums.phpfreaks.com/topic/155341-solved-quick-question/#findComment-817258 Share on other sites More sharing options...
jackpf Posted April 23, 2009 Share Posted April 23, 2009 Exactly like that. Quote Link to comment https://forums.phpfreaks.com/topic/155341-solved-quick-question/#findComment-817261 Share on other sites More sharing options...
Jiraiya Posted April 23, 2009 Author Share Posted April 23, 2009 ok thanks Quote Link to comment https://forums.phpfreaks.com/topic/155341-solved-quick-question/#findComment-817262 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.