condition
A true-or-false expression that decides which code runs.
A condition is a bool-valued expression controlling an if, while, for, or do statement.
Examples
age >= 18is a condition: it's either true or false.
A true-or-false expression that decides which code runs.
A condition is a bool-valued expression controlling an if, while, for, or do statement.
Examples
age >= 18 is a condition: it's either true or false.