⚡ 0 XP
Step 1 of 1
Level 10 · Is there a tiffin here?
An if block asks a yes/no question. If the answer is yes, the blocks inside run. If no, they are skipped.
This lets one program work even when things are in different places.
🎯 Challenge: Level 10 · Is there a tiffin here? +20 XP
Tiffins are scattered along the road. Use “if on a tiffin → pick up” so Dabbu only picks where there is something to pick.
Try twice to unlock the solution (0/2)
See the code · JavaScript
// Drag blocks under “when Run is pressed”
Lesson notes (text version)
1. Level 10 · Is there a tiffin here?
An if block asks a yes/no question. If the answer is yes, the blocks inside run. If no, they are skipped.
This lets one program work even when things are in different places.
Challenge: Level 10 · Is there a tiffin here?
Tiffins are scattered along the road. Use “if on a tiffin → pick up” so Dabbu only picks where there is something to pick.