Warptweet Posted January 18, 2007 Share Posted January 18, 2007 I use this code...if($flashage=+3){$flashrecommended = "ages 3 and above";}Although, I'm not sure if it will work.How can I make it so that if $flashage is [b]ABOVE[/b] 3? Quote Link to comment https://forums.phpfreaks.com/topic/34687-if-flashage-is-above-a-number/ Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 if ($flashage > 3){}Right now you're (sorta but not really) setting it equal to itself plus 3. Quote Link to comment https://forums.phpfreaks.com/topic/34687-if-flashage-is-above-a-number/#findComment-163475 Share on other sites More sharing options...
zhahaman2001 Posted January 18, 2007 Share Posted January 18, 2007 or if you need it to be > or = to then you can do thisif ($flashage >= 3){} Quote Link to comment https://forums.phpfreaks.com/topic/34687-if-flashage-is-above-a-number/#findComment-163479 Share on other sites More sharing options...
Warptweet Posted January 18, 2007 Author Share Posted January 18, 2007 One more thing...Does that make it:The number is three OR above? Or above three? Quote Link to comment https://forums.phpfreaks.com/topic/34687-if-flashage-is-above-a-number/#findComment-163483 Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 I think our two comments made that pretty clear. The less than, greater than and equal to symbols are taught in basic math.> is greater than.>= is greater than or equal to. Quote Link to comment https://forums.phpfreaks.com/topic/34687-if-flashage-is-above-a-number/#findComment-163485 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.