Making Decisions with If Blocks
An if block checks a condition. If the condition is true, the blocks inside run. If false, they are skipped.
Structure
if then [blocks that run when condition is true] end
Example
When 🏁 clicked → forever → if then → say “Ouch!” for 1 second
The sprite only speaks when it touches the edge — not all the time.