Unable to proceed to next page despite correct code


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>";


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?


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


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


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


Keep in mind, truthy. It applies in PHP.


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