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
edit edit sourceConditional operators are the syntax used to evaluate a statement to a boolean value.
See: Comparison operator.
Conditional statements
edit edit sourceConditional 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.