ORS Function

Performs a logical OR operation on the corresponding elements in two dynamic arrays.

Syntax

ORS(dynArray1, dynArray2)

Syntax Elements

dynArray1, dynArray2
DataBasic expressions that evaluate to dynamic arrays.

Return Value

A dynamic array with a structure formed by combining dynArray1 and dynArray2. Each element contains the result of performing a logical OR operation between the corresponding elements in the original arrays.

Comments

For details of the logical values of different types of element, refer to Logical Expressions.

Missing elements (those that appear in one array, but not in the other) are treated as null.

See Also

ANDS function.

Example

ARY1 = @TRUE:@VM:@FALSE:@VM:@TRUE:@VM:@FALSE
ARY2 = @TRUE:@VM:@TRUE:@VM:@FALSE:@VM:@FALSE
NEWARY = ORS(ARY1, ARY2)

Sets NEWARY to "1VM1VM1VM0".