Boolean question
A test with a true or false result.
Curriculum topic
Conditions let a program choose between actions by asking a question that can be answered yes or no.
Why it matters
A game needs to decide whether a player won, a quiz needs to check an answer, and a robot needs to decide whether an obstacle is close enough to matter. Conditions turn information into behaviour.
Real-world connection
A thermostat asks whether a room is colder than its target. The important part is not the appliance; it is the boundary between two decisions and what happens on each side.
The connection shows where the idea returns; it does not claim every advanced application is taught in this first topic.
Math and logic kernel
A test with a true or false result.
Run an action only when a condition is true.
Choose between two paths.
Test whether values are equal, greater, or less.
Small examples
Compare a response with the expected value.
Win if the player reaches a target.
Turn if a sensor reports something close.
Change behaviour below a chosen threshold.
Program connections
Beginner-friendly programming through original games, animations, simulations, and interactive stories.
Commands, sensors, simple electronics, simulations, and physical systems organized around Sense, Decide, Act.
A future bridge from visual programming to Lua, 3D objects, events, and larger game systems.
A future practical and critical program about patterns, predictions, prompts, limits, and human judgment.
Common mistakes
A changing game condition is tested only at startup.
The warning appears above the threshold instead of below it.
Win and loss can both become true without a priority rule.
The code assumes a value or state that was never initialized.
Lesson and projects
Build a quiz with answer checks, feedback, score, question state, and respectfully strange wrong answers.
Open projectBuild a fast chase game with known positions, collision rules, win and loss states, and reliable restart behaviour.
Open projectDesign a patrol that repeats, senses a changed world, and uses feedback to recover.
Open project