What does condition mean?
An expression that is either true or false, used by selection and iteration to decide what happens next: distance() < 10, for example.
In a lesson
Here is the block from the last lesson doing its real job. The
ifline asks a question, the condition. If the answer isTrue, the block runs. If it isFalse, the block is skipped, and the program carries on with the first line after the block.
Learn it
- Taught in F2.2 Selection: if Decisions and loops, GCSE
Used in
- F2.3 else, elif and Boolean operators
- F2.6 Condition-controlled loops: while
- F7.3 SQL: SELECT
- F7.4 SQL: two tables and changing data
- F12.5 Technology and the environment
- F13.2 Trace tables
- F13.7 Where marks are lost
- F13.8 Revision that works
- 5.2 States
- 5.6 Project: rescue
and 25 more lessons.
Do the lesson in the simulator