Getting Started Guide
CLASS 3
16
This time we will learn the 'if' syntax in more detail.
We eat ice cream when we want to eat sweets or it’s hot and we don’t otherwise.
Here we need two 'if' statements. First, I'll check to see if it's hot outside and the second time I want to eat sweet.
This is called “Nested ‘if’ Syntax”
'If' syntax in 'if' syntax
Introduction
Yes
Is it hot
outside?
Do you want
to eat
something
sweet?
Don't eat ice cream
I eat
ice cream
The end
No No
Yes