So I have this little problem. I'm not sure where it went wrong because I'm pretty sure I got the code right. Here's the code:
#!/bin/bash
playerHP=100
echo "Hello World"
echo "HP: $playerHP"
echo "Continue? (Y/N):"
read -p $confirm
if [ "$confirm" = "y" ]
then
echo "Yes"
elif [ "$confirm" = "n" ]
then
echo "No"
else
echo "No such command"
fi

[ "$confirm" = "n" ](good!), but the error message implies[ $confirm == "n" ](bad).