grahamb314 Posted September 30, 2008 Share Posted September 30, 2008 Hi all, How do i do this: While this really complex formula is not greater or equal to 10, do this. I am guessing: while(! complex formula >= 10) {do this} In other words while it is not the case that..... do this.... OR: while(complexformula !>= 10) {do this} Link to comment https://forums.phpfreaks.com/topic/126490-solved-while-this-is-not-true-do-this/ Share on other sites More sharing options...
DarkWater Posted September 30, 2008 Share Posted September 30, 2008 The first one would be how you could do this. I'd use parentheses too: while (!(complex formula >= 10)) { } Or you could just use <=... =P Link to comment https://forums.phpfreaks.com/topic/126490-solved-while-this-is-not-true-do-this/#findComment-654059 Share on other sites More sharing options...
grahamb314 Posted September 30, 2008 Author Share Posted September 30, 2008 <= Now thats logical ! Thanks Link to comment https://forums.phpfreaks.com/topic/126490-solved-while-this-is-not-true-do-this/#findComment-654065 Share on other sites More sharing options...
grahamb314 Posted September 30, 2008 Author Share Posted September 30, 2008 Actually it's just < Link to comment https://forums.phpfreaks.com/topic/126490-solved-while-this-is-not-true-do-this/#findComment-654068 Share on other sites More sharing options...
DarkWater Posted September 30, 2008 Share Posted September 30, 2008 Actually it's just < My bad, forgot about the = on the original one and wasn't really thinking. Link to comment https://forums.phpfreaks.com/topic/126490-solved-while-this-is-not-true-do-this/#findComment-654077 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.