Grow your CSS skills. Land your dream job.

My "or" is not working

  • # August 12, 2014 at 7:11 am

    What is wrong with the first line?

    <? if ($name == Meritor || Meritor2) {
    echo ‘ ‘;
    } else {
    echo ‘s';
    }
    ?>

    Thanks!

    # August 12, 2014 at 7:13 am
    
    <? if ($name == 'Meritor' ||  $name == 'Meritor2') {
    

    This should do the trick.

    # August 12, 2014 at 7:18 am

    Perfect thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".