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 Quote Link to comment 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? Quote Link to comment 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) Quote Link to comment 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.