WMLScript » Logical » ||


The || is the logical OR operator. This operator performs a Boolean test on two operands. If either or both operands test true, a true is returned. If both operands test false, a false is returned. If the first operand that is tested proves to be invalid, the second operand is not tested, and invalid is returned. Similarly, if the second operand is invalid, invalid is returned.


var result = op1 || op2;
Language(s): WML

See Also: