Boolean question
A test whose answer is true or false.
Topic Guide
A condition is a question with a true or false answer. The answer decides which code runs.
Has the player reached safety? Is the quiz answer correct? Is the wall closer than 15 centimetres? Each question turns information into a decision the program can repeat reliably.
A thermostat compares the room temperature with a target. Below the target it heats; above it, it waits. The chosen boundary controls the behaviour.
A test whose answer is true or false.
Run these commands when the test is true.
Choose one of two paths.
Check whether two values are equal or which one is larger.
Compare the response with the stored answer.
Set the game to WON when the player reaches the target.
Turn when the distance reading falls below a limit.
Show a warning when fuel drops below the chosen threshold.
Program connections
Students author games, animations, simulations, and strange interactive stories while learning how events, rules, and state fit together.
Students write commands, wire simple circuits, read sensors, and trace physical cause and effect through the Sense–Decide–Act loop.
A possible later step from visual programming into Lua, 3D objects, events, and larger game rules.
A possible later program for testing patterns, predictions, prompts, mistakes, and the limits of AI tools.
The program tests a changing condition only when the game starts.
The warning appears above the threshold instead of below it.
Win and loss can both become true without a priority rule.
The condition reads a variable that was never initialized.
Build a quiz that checks answers, gives useful feedback, keeps score, and knows which question comes next.
See how it worksBuild a fast chase game with known positions, collision rules, win and loss states, and reliable restart behaviour.
See how it worksDesign a repeating patrol that notices an obstacle, tries a response, and checks whether the response worked.
See how it works