(expression-1 || expression-2)
The || Operator
Syntax
The ||
operator performs a short-circuit "or" evaluation of the two
expressions. This operator evaluates condition-1 and returns true
if condition-1 returns true. Only if condition-1 returns false
is condition-2 evaluated and its result returned.
Examples:
if (User-Name || NAS-IP-Address) { …