Printing you get a 5% discount but still unable to proceed


Adding an else

Am I missing something? Shouldn't this allow me to proceed?

Any help would be appreciated.

        $items = 3;
        if($items  > 5) {
          echo "You get a 10% discount!";
        else {
        echo "You get a 5% discount";


For anyone who sees this,I missed the exclamation symbol at the end f the line.


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