case statement

Hi all,

I think i'm asking a sqtupid question here..

i'm using case sttament, what is the syntax or symbol for "or"?

I thought was ||

here a quick sample of my case statment

echo "Would you like to update your detail [Y/N]?"
read response
case $response in

    "Y" || "y" \)
        echo "Please enter your new name
        read name;;
        

   "N" || "n"\)
        echo "Bye bye"
        exit;;

When i use above sytax, it complains "||" symbol

please help

heheheh

don't worry..

figurd it out
silly me

using || instead of |

no need of using "|"
try

case $option in
[Yy])echo "YES";;
[Nn])echo "NO";;
*)exit;;
esac