#!/bin/ksh
echo "Input either 1 or 2"
read Num
if [ $Num -eq 1 ]
then
echo "Message 1"
else
if [ $Num -eq 2 ]
then
echo "Message 2"
else
echo "false"
fi
fi
I would also advice you to put double-quotes around all uses of $Num (ie. "$Num"), to ensure you have an empty string rather than a missing variable if the responder just presses Enter.