Condition
From Coderwiki
More actions
A condition is a statement that evaluates to a boolean value.
They are often used in selection statements (such as if statements) to branch code (do different things based on input).
Conditional operators
Conditional operators are the syntax used to evaluate a statement to a boolean value.
See: Conditional operator.
Conditional statements
Conditional statements are selection: they allow us to branch code based on the result of a condition.
The main conditional statement is the if statement, but there are other types of selection, such as the switch statement and match statement.