next up previous contents
Next: Unary Up: Operators Previous: Operators

Binary

The following is a list of all the binary operators and their usages:

(*) Starred explanations indicate that the operator requires integer arguments.

Logical AND (&&) and OR (||) short-circuit the way they do in C. That is, the second && operand is not evaluated if the first is false; the second || operand is not evaluated if the first is true.

The ternary operator evaluates its first argument (a). If it is true (non-zero) the second argument (b) is evaluated and returned, otherwise the third argument (c) is evaluated and returned.


Andreas Geyer-Schulz
Tue Sep 12 22:17:47 MET DST 1995