DRAFT
Not Observed
An if-then-else
block is equivalent to a sequence of an if-then
block
followed by the body of the else.
The else branch of an if-then-else block always executes
The else branch of an if-then-else block only executes if the condition evaluates to false
In an if-then-else
block, only one of the two branches executes.
With the following script, the sprite will either say “a” or it will say “b”. This means it will not always say “b”.
The following script is different. The sprite will either say “a” immediately followed by “b”, or it will say “b”. This means it will always say at least “b”:
is different from
Follow us on twitter to hear about new misconceptions.