I'm completing a scratch programme that 'draws straws' for a task (allocating a task to someone). At the moment I'm trying not to let the user input letters but I can't find an effective way to do it. Any Ideas?
Thanks
Offline
Use the ask button, check its length to make sure it's just one letter using the length of () block. To keep the letter safe, store it in a variable with set variable to (answer).
Does that help?
Offline
I think this'll work:
Repeat until answer squared = answer squared
Ask please enter a number
Obviously if it's a number it will work, but I think if there's a letter in it it will ask it again.
Offline
What you want is all explained here.
Offline