If/Else — Two Paths
The if/else block runs one set of blocks when the condition is true and a different set when it is false.
Example: Day/Night
- if then
- switch backdrop to (sunny day)
- else
- switch backdrop to (night sky)
Only one of the two backdrops ever shows — never both at the same time.
When to Use If vs If/Else
- Use if when you only need something to happen in one case.
- Use if/else when you need two different reactions.