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