karimali831 Posted November 14, 2010 Share Posted November 14, 2010 Hi, My example: $setting = 4 //can challenge if opponent has 4 points lesser than you $team1 = 13; //challenger points $team2 = 7; //points In my above case, it should return false because 13-7 = 6, $team2 has 6 points lesser than team 1. If team2 had 4 points or lesser, it should return true. Can someone write the if() statement for me please? Appreciate that alot. Thanks Link to comment https://forums.phpfreaks.com/topic/218644-php-greaterlesser/ Share on other sites More sharing options...
BlueSkyIS Posted November 14, 2010 Share Posted November 14, 2010 to make sure I understand: if team1 minus team2 is greater than setting, return false, otherwise return true? Link to comment https://forums.phpfreaks.com/topic/218644-php-greaterlesser/#findComment-1134076 Share on other sites More sharing options...
karimali831 Posted November 14, 2010 Author Share Posted November 14, 2010 Yes, would this be right? if($team1 > $team2 && $team1-$team2 > $setting) Link to comment https://forums.phpfreaks.com/topic/218644-php-greaterlesser/#findComment-1134083 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.