Back to Index

Definition: expr || expr (or expr or expr) — Allowed: numeric expressions; Not allowed: strings.

Logical disjunction. Evaluates to 1 when either operand is non-zero, otherwise 0. Lower precedence than &&; use parentheses to group complex expressions.

Example

if (dry || alarm) {
  out(1) = 0;
}