Skip to Content
API Referencelor (logical "or")

lor (logical “or”)

lor(compares: any number of Array<Boolean>) -> Array<Boolean>

Compares any number of boolean arrays, and returns an array containing boolean values that are true in places where the values from any input array are true. Can also be used with the shorthand | operator.

Note

Unlike other similar functions, all inputs must be arrays.

Example:

local var = lor(cond1, cond2, cond3, ...) local var = cond1 | cond2

See also land