Computer Science for IGCSE & O level - Programming (Section 3 - No. 39)

What is the purpose of the `OR` operator in a conditional statement?
To execute code if all conditions are true.
To execute code if at least one condition is true.
To reverse the boolean value of a condition.
To assign a value to a variable.

Explanation

The OR operator returns true if at least one of the conditions is true.

Comments (0)

Advertisement