Reference Guide > I–L Routines > INDEX_OR Function
  

INDEX_OR Function
Standard Library function that computes the logical OR for two vectors of positive integers.
Usage
result = INDEX_OR(array1, array2)
Input Parameters
array1A vector of positive integers.
array2A vector of positive integers.
Returned Value
result—A vector consisting of all elements contained in either of the input arrays (result is unique).
Keywords
None.
Examples
The following example demonstrates how to print out the unique integer values found in each matrix.
PM, INDEX_OR([2,0,3],[1,2,0,2])
; PV-WAVE prints:
;    0
;    1
;    2
;    3
See Also
INDEX_AND, WHEREIN

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.