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? 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 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) 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. 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 Link to comment https://forums.phpfreaks.com/topic/155341-solved-quick-question/#findComment-817262 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.