Michdd Posted November 26, 2008 Share Posted November 26, 2008 Is it possible to write a for statement, using an or as the conditional? Using 2 different variables? Like it will run the for unless 1 of 2 of the variables in <= 0 Quote Link to comment https://forums.phpfreaks.com/topic/134401-solved-for-statement-with-an-or/ Share on other sites More sharing options...
Mchl Posted November 26, 2008 Share Posted November 26, 2008 use while instead Quote Link to comment https://forums.phpfreaks.com/topic/134401-solved-for-statement-with-an-or/#findComment-699696 Share on other sites More sharing options...
Maq Posted November 26, 2008 Share Posted November 26, 2008 while($var1 > 0 && $var2 > 0) { Quote Link to comment https://forums.phpfreaks.com/topic/134401-solved-for-statement-with-an-or/#findComment-699699 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.