User input/Graphical: Difference between revisions

Content deleted Content added
Scratch
Scratch: reworded with different terminology
Line 850: Line 850:
=={{header|Scratch}}==
=={{header|Scratch}}==


The "ask _____ and wait" operator (a "Sensing" block) pops up a word balloon with a question in it and waits for user input. The input is returned in "answer," essentially an automatic variable attached to this operator. It can be treated as a string or a number, depending on context. "Answer" cannot be modified, but its value can be stored in other variables.
The Sensing block "ask _____ and wait" pops up a word balloon with a question in it and waits for user input. The input is returned in "answer," essentially a special variable. It can be treated as a string or a number, depending on context. "Answer" cannot be modified, but its value can be stored in other variables.


[[File:Scratch_User_Input_Graphical.png]]
[[File:Scratch_User_Input_Graphical.png]]