User Guide

88
2. You cannot snap other blocks to the bottom of a
forever if block.
4.6 Strings
A string is a sequence of characters, like a name, word, or
sentence. Many of the blocks that you can use to work with
strings are introduced earlier in this chapter:
But in the Operators section of the Blocks Palette, there are
three operator blocks that only work with strings:
Block Section Description
set ? to ? Variables Sets the value of the specified variable to a string.
say ? for
? secs
Looks Displays a speech bubble next to the sprite for the
number of seconds specified.
say ? Looks Displays a speech bubble next to the sprite.
think ?
for ? secs
Looks Displays a thought bubble next to the sprite for
the number of seconds specified.
think ? Looks Displays a thought bubble next to the sprite.
ask ? and
wait
Sensing Shows the specified string and a text input box to
the user. When the user presses Enter or clicks
the button, their answer is stored in the variable
answer.
Block Description
join ? ? Joins two strings together.
letter ? of ? Extracts the character at the specified position of
the string.
length of ? Calculates the number of characters in the string.