Home Segments Index Top Previous Next

294: Mainline

Roughly, the and operator, &&, and the or operator, ||, do what they sound like they should do. The and operator returns 1 if both of its operands evaluate to any integer other than 0. The or operator returns 1 if either of its operands evaluates to an integer other than 0.