Okay, essentially this is what the script looks like:
echo -n "Guess my number: "
read guess
while [ $guess != 5 ]; do
echo Your answer is $guess. This is incorrect. Please try again.
echo -n "What is your guess? "
read guess
done
echo "That's correct! The answer was $guess!"
What I want to change is this line:
while [ $guess != 5 ]; do
To something like this:
while [ $guess != 5 and $guess != 10 ]; do
In Java I know "and" is " && " but that doesn't seem to work here. Am I going about this the right way using a while loop?