Getting started with conditionals

  • + 5 comments
    read x
    if($x==N || $x==n)
    then
        echo "NO"
    else 
    echo "YES"    
    fi
    

    Why is this not working correctly?