IndexOr (FPScript)

21.09.2021

Performs a logical Boolean OR operation for two index data sets.

Syntax

IndexOr(Index1, Index2)

 

The syntax of the IndexOr 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 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 and are sorted in ascending order. The result is a data series or data matrix containing all of the indices that occur in Index1 or Index2. The result therefore contains the union 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

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

Results in {0L, 1L, 2L, 3L, 5L, 6L}.

IndexOr({ {0, 0}, {0, 1}, {1, 0}}, { {1,0}, {1,1} })

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

See Also

IndexAnd 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