or

Version:

Determines whether at least one of the corresponding input elements is non-zero. or(a,b) is equivalent to a|b.

Syntax

c = or(a, b)

a

Scalar or array of any dimension of integer, real, or Boolean values.

b

Scalar or array of any dimension of integer, real, or Boolean values. If both a and b are arrays, b must be the same size as a.

c

Boolean values, where an element in c is 1 if at least one of the corresponding elements in a and b is non-zero. Otherwise, the element is 0. c is an array of the same size as a or b.

A = [1, 0]
B = [1, 1]
C = or(A, B)

Where This Node Can Run:

Desktop OS: Windows

FPGA: DAQExpress does not support FPGA devices