Please update your browser
Your browser version is not supported by this site. CS First may not work properly.
In this add-on, you will ask the user
a question and make something happen based on the response.
This is a challenge add-on,
so this video will help you get started,
but it won't give you all of the steps.
To get started, decide what you want
to ask the user and what you want to happen
based on their response.
Program a sprite to ask the user a question.
Select a sprite and add an ask block.
Next, add an if/else block that makes something happen,
depending on the user's response.
In this example, this sprite says,
do you want balloons?
If the user says yes, then balloons appear.
If the user does not say yes,
then the sprite says, aw, okay.
Your sprite might ask something like,
is it your birthday?
Do you like computer science?
What is your favorite reptile?
What's the best animation?
You can make almost anything happen
based on the user's response.
Have fun and get creative!
Now it's your turn.
Ask the user a question.
Program different things
to happen based on the user's response.