DO WHILE with OR not working?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello I want to use the DO WHILE statement with an OR ( || )

like this:

 }while ($found != 1 || $count == 10);

But this is nog working in PHP 4.4 . Anybody know how to do this?


Re: DO WHILE with OR not working?

Eric Rechter wrote:
Quoted text here. Click to load it

What is the rest of the loop, and what are the values of $count and
$found before it starts?

Your while is saying to do the loop again only if $found is not 1 and
$count *is* 10... possibly should be:

while ($found != 1 || $count < 10);

?? without knowing what you want to do, it's impossible to say...

Justin Koivisto, ZCE -

Site Timeline