Thursday, April 14, 2011

4-7-11

What is a condition?
A condition is something that must be true in order for something to happen.

What are some statements of a conditional construct?
A condition is thus said to "evaluate to true" or "evaluate to false."

What happens when you use the if construct?
With it can we instruct a sprite to say hello only if, say, the user has depressed the mouse button:

What happens when a construct is nested?With the above construct can we instruct a sprite to say hello or goodbye, depending on whether the user has depressed the mouse button:

No comments:

Post a Comment