wildcard in a if cycle

hello everybody,
I need help on putting a wildcard match inside an if condition (I'm using korn shell):

if [ $MYSEL -ne [0-5] ]
then echo ' '
echo ''$MYSEL' is not a correct option'
echo ' '
else .....

i tried also #if -ne "`[0-5]`" and a lot of combinations of `"' but I didn't find the correct one...i want to match as condition all values differents from 0 to 6 numbers

thanks a lot for the help
Elio

if [[ $MYSEL -lt 0 || $MYSEL -gt 5 ]] then
         echo "bad"
else
         echo "good"
fi

thanks a lot, you are my hero :slight_smile: