ORoperaattori
ORoperaattori (OR operator) is a fundamental boolean operator used to combine two logical expressions. The operator yields true if at least one of its operands is true; it yields false only when both operands are false. In Boolean algebra this operator is denoted by the symbol ∨, and in many programming languages it is represented as || for logical OR or as | for bitwise OR. Some languages also use the word or as a keyword.
In logic, OR corresponds to the disjunction operation. The result depends on the truth values of the
In programming, there are two related concepts: logical OR and bitwise OR. Logical OR evaluates to a
Precedence and associativity typically place OR below AND and often evaluate left-to-right, though parentheses are recommended