0% complete
Mapped to NCF computational-thinking outcomes for upper primary.
Chapter 1 of 13 12 min
Thinking in 'if… then…'
Story
Aanya and Vihaan reach a new challenge: "Thinking in 'if… then…'". Think about traffic light logic.
Pixel beeps: "Don't just read about it — let's learn by DOING. Try the demo below! "
The idea
Logical rules. Logic is about clear rules: 'IF it is raining THEN carry an umbrella. ' Spotting the IF and THEN in daily life is the first step to coding decisions.
True or false. Every logical statement is either true or false. Computers store this as on/off, 1/0.
Indian-life example — Traffic light logic
IF red THEN stop. IF green THEN go. Self-driving cars use thousands of such rules.
Interactive demo — do it yourself
Pixel · Step 1 of 1
What comes next in the pattern? Tap your answer.
🔺🔵🔺🔵🔺?
Practice — your turn
'IF hungry THEN eat' is a…
Recap
- Logical rules
- True or false
+15 XP on complete
Finish the demo and practice above to continue.