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? 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. 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){} 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? 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. 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
Archived
This topic is now archived and is closed to further replies.