DataBasic Reference > Statements and Intrinsic Functions > O > ORS Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

ORS Function (DataBasic) (m618703+ors_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

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".

RealityV15.1 (MoTW) Revision 7Comment on this topic