Because there could be a 'Q' as a correct input,too. However, I would do a SELECT-CASe statement
code:
SELECT
CASE $answer = 'q'
quit()
CASE VAL($answer) and VAL($answer)<16
RUN $choices[$answer]
CASE 1
; incorrect selection, try again
ENDSELECT

_________________________
There are two types of vessels, submarines and targets.