Use the Comparison functions to compare Boolean values, numeric values, arrays, and clusters.
![]() | Note This palette is specific to FPGA targets and contains a subset of the VIs and functions that are on this palette when you edit a Windows or RT target VI. |
The Comparison functions treat Boolean, numeric, array, and cluster values differently. You can change the comparison mode of some Comparison functions.
| Palette Object | Description |
|---|---|
| Equal To 0? | Returns TRUE if x is equal to 0. Otherwise, this function returns FALSE. |
| Equal? | Returns TRUE if x is equal to y. Otherwise, this function returns FALSE. You can change the comparison mode of this function. |
| Greater Or Equal To 0? | Returns TRUE if x is greater than or equal to 0. Otherwise, this function returns FALSE. |
| Greater Or Equal? | Returns TRUE if x is greater than or equal to y. Otherwise, this function returns FALSE. You can change the comparison mode of this function. |
| Greater Than 0? | Returns TRUE if x is greater than 0. Otherwise, this function returns FALSE. |
| Greater? | Returns TRUE if x is greater than y. Otherwise, this function returns FALSE. You can change the comparison mode of this function. |
| In Range and Coerce | Determines whether x falls within a range specified by the upper limit and lower limit inputs and optionally coerces the value to fall within the range. The function performs the coercion only in Compare Elements mode. This function accepts time stamp values if all inputs are time stamp values. You can change the comparison mode of this function. |
| Less Or Equal To 0? | Returns TRUE if x is less than or equal to 0. Otherwise, this function returns FALSE. |
| Less Or Equal? | Returns TRUE if x is less than or equal to y. Otherwise, this function returns FALSE. You can change the comparison mode of this function. |
| Less Than 0? | Returns TRUE if x is less than 0. Otherwise, this function returns FALSE. |
| Less? | Returns TRUE if x is less than y. Otherwise, this function returns FALSE. You can change the comparison mode of this function. |
| Max & Min | Compares x and y and returns the larger value at the top output terminal and the smaller value at the bottom output terminal. This function accepts time stamp values if all inputs are time stamp values. If the inputs are time stamp values, the function returns the later time at the top and the earlier time at the bottom. The wire is broken if the inputs are not the same data type. You can change the comparison mode of this function. |
| Not Equal To 0? | Returns TRUE if x is not equal to 0. Otherwise, this function returns FALSE. |
| Not Equal? | Returns TRUE if x is not equal to y. Otherwise, this function returns FALSE. You can change the comparison mode of this function. |
| Select | Returns the value wired to the t input or f input, depending on the value of s. If s is TRUE, this function returns the value wired to t. If s is FALSE, this function returns the value wired to f. |