Back to Index

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

Logical exclusive-or. Evaluates to 1 when exactly one operand is non-zero; otherwise 0. Precedence is between && and ||.

Example

if (in(1) ^^ in(2)) {
  out(1) = 1;
}