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

#1 2011-06-01 09:09:47

edrocks147
New Scratcher
Registered: 2011-06-01
Posts: 3

Help

I have to write a program for school which involves a sprite asking the user would they like a cup of tea. The user then decides by using the (y) button for yes or the (no) button for no. The program must have an (if else) command and a variable. It should just say "ok ill make u one" if Yes and "ok goodbye" if no.

Im really really struggling with this as i am very very new to scratch.

I would very much appriciate any support that anyone can offer

Thankyou

Offline

 

#2 2011-06-01 14:57:09

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Help

Code:

ask [Would you like a cup of tea?] and wait
if <(answer) = [y]>
  say [OK, I'll make you one.]
else
  say [OK, goodbye]

Is that what you're looking for?

Offline

 

#3 2011-06-01 15:01:45

emboar30
Scratcher
Registered: 2011-05-03
Posts: 100+

Re: Help

scimonster wrote:

Code:

ask [Would you like a cup of tea?] and wait
if <(answer) = [y]>
  say [OK, I'll make you one.]
else
  say [OK, goodbye]

Is that what you're looking for?

Yeah that sounds about right scimonster  tongue


http://scratch.mit.edu/static/icons/buddy/788987_med.png?t=2011-05-02+15%3A14%3A41
I is epiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiic!     See my stuff here!!!!!

Offline

 

#4 2011-06-01 15:07:02

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Help

emboar30 wrote:

scimonster wrote:

Code:

ask [Would you like a cup of tea?] and wait
if <(answer) = [y]>
  say [OK, I'll make you one.]
else
  say [OK, goodbye]

Is that what you're looking for?

Yeah that sounds about right scimonster  tongue

Good.  smile

Offline

 

Board footer