Transform Reference Guide
|User Guide | Transform Guide | OSW on the Web|
Synchronously compare two values for equality or inequality.
The equality and inequality operators accept inputs and initialization arguments of any numeric type (Integers, Floats, Doubles, Complex and DoubleComplex) as well as Strings. For scalar input, the operators return a true or false value.
If one of the arguments is an audio-sample type and the other is a numeric type, the equality operator returns a stream of audio-samples whose values are either 1 or 0 depending on whether the corresponding input sample is equal to the numeric argument. The inequality operator returns a similar result but with an output sample value of 1 whenever an input sample is unequal to the numeric argument. The relational operators do not support both parameters being audio samples.
These operators only output a result when new values have been received by both inlets. Thus, if a new value is received by param1, no result will be computed until a value is received by param2 as well. If this is not the behavior you want, try the the == or != operator instead.