Revision as of 12:30, 12 October 2011 by Scimonster (talk | contribs) (Added to the block template, and put in dashes.)

Ask () and Wait
Ask () and Wait.png
Category Sensing
Type Stack
Introduced in 1.4

The Ask () and Wait block is a Sensing block and a Stack block. The block will make an input box (with the specified text above it) show at the bottom of the screen. Scratchers can input text into it and submit it — the input is stored in the Answer block. The Answer block automatically updates to the latest input.

In Scratch and the Flash Player, text can be pasted in, but not in the Java Player.


This block can be somewhat replicated with the following code:

File:Workaround for the ask and wait block.png

Note Note: This does not work perfectly. See this project for more information.

The list "answer" will replace the answer block.

Example Uses

As this block allows users to input any text they want, it is widely used when a user must communicate with the project.

Some common uses for the Ask () and Wait block:

  • Chatbots — receiving information from the user
  • Setting preferences — coordinates, color, and so on
  • Receiving input — asking the user to give a command

See Also