Unable to proceed to next page despite correct code


#1


Completing the Loop


Please refer to my code. After I click on submit and save, nothing happens. I guess, my code is correct. I also cleared the cache multiple times but I am unable to move to next page/topic.


    $loopCond = false;
        do {
            echo "<p>The loop ran even though the loop condition is false.</p>";
    }    while ($loopCond==true);
    echo "<p>Now the loop is done running.</p>";


#3

I am getting an error as:

"Oops, try again. Did you put parentheses around $LoopCond? "

all the parentheses are in place. what am I missing?


#4

can someone please reply? I am unable to proceed until i am stuck on this exercise.


#5

Try without ==true. It is moot, when we think about it.


#6

this is funny.. i thought we have to provide the condition.


#7

Keep in mind, truthy. It applies in PHP.


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.