This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-11-01 02:44:29

emma147
New Scratcher
Registered: 2011-11-01
Posts: 4

Not letting my variable be set as a negative number

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 negative numbers but I can't find an effective way to do it. Any Ideas?

Thanks  smile

Offline

 

#2 2011-11-01 03:20:45

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Not letting my variable be set as a negative number

repeat until (not(answer<0))
  ask (please do NOT enter a negative number!)

Last edited by roijac (2011-11-01 03:21:04)

Offline

 

Board footer