Lingo Dictionary > O-R > or

 

or

Syntax

logicalExpression1 or logicalExpression2

Description

Operator; performs a logical OR operation on two or more logical expressions to determine whether any expression is TRUE.

This is a logical operator with a precedence level of 4.

Example

This statement indicates in the Message window whether at least one of the expressions 1 < 2 and 1 > 2 is TRUE:

put (1 < 2) or (1 > 2)

Because the first expression is TRUE, the result is 1, which is the numerical equivalent of TRUE.

Example

This statement checks whether the content of the field cast member named State is either AK or HI and displays an alert if it is:

if member("State").text = "AK" or member("State").text = "HI" then 
	alert "You're off the map!"
end if"

See also

and, not