RosettaCodeData/Task/Keyboard-input-Obtain-a-Y-or-N-response/LiveCode/keyboard-input-obtain-a-y-or-n-response.livecode
2023-07-01 13:44:08 -04:00

8 lines
202 B
Text

on KeyDown k
if toUpper(k) is among the items of "Y,N" then
answer "Thanks for your response"
else
answer "You need to enter Y or N"
end if
put empty into me
end KeyDown