IndexAnd (FPScript)

21.09.2021

Performs a Boolean AND operation for two index data sets.

Syntax

IndexAnd(Index1, Index2)

 

The syntax of the IndexAnd function consists of the following parts:

Part

Description

Index1

The first index data set with ascending indices or 2D indices.

Permitted data structures are data series und data matrix. All real data types are permitted.

Index2

The second index data set with ascending indices or 2D indices.

Permitted data structures are data series und data matrix. All real data types are permitted.

Remarks

As the result the function returns a data series of data type 64-bit integer.

Before the Boolean operation, the data are converted into 64-bit integers, if applicable. The two data series to be combined must contain values greater than or equal to zero which are sorted in ascending order. The result is a data series or data matrix containing all of the indices that occur in Index1 and Index2. The result therefore contains the intersection of both data sets.

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Available in

FlexPro Basic, Professional, Developer Suite

Examples

IndexAnd({1, 3, 5, 6}, {0, 1, 2, 5})

Results in {1L, 5L}.

IndexAnd({ {0, 0}, {0, 1}, {1, 0}}, { {0, 0}, {1, 0}, {1, 1} })

Results in { {0L, 0L}, {1L, 0L} }.

See Also

IndexOr Function

IndexNot Function

IndexBefore Function

IndexAfter Function

IndexSort Function

IndexSegments Function

Event Isolation Analysis Object

Share article or send as email:

You might be interested in these articles