DataBasic Reference > Statements and Intrinsic Functions > A > ANDS 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

ANDS Function (DataBasic) (m618703+ands_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

ANDS Function

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

Syntax

ANDS(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 AND 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

ORS function.

Example

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

Sets NEWARY to "1VM0VM0VM0".

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