Вы находитесь на странице: 1из 3

Comparison Functions

Requires: Base Package. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target. Use the Comparison functions to compare Boolean values, strings, numeric values, arrays, and clusters. The Comparison functions treat Boolean, string, numeric, array, and cluster values differently. You also can use the Comparison functions to compare characters. You can change the comparison mode of some Comparison functions. Description Compares input items you specify to determine whether values are Comparison equal, greater than, less than, and so on. Returns TRUE if char represents a decimal digit ranging from 0 through 9. If char is a string, this function uses the first character in the string. If char is a number, this function interprets it as the Decimal Digit? ASCII value of a character. If char is a floating-point number, this function rounds to the nearest integer. Otherwise, this function returns FALSE. Returns TRUE if the input array is empty. Otherwise, this Empty Array? function returns FALSE. Returns TRUE if string/path is an empty string or an empty path. Empty String/Path? Otherwise, this function returns FALSE. Returns TRUE if x is equal to 0. Otherwise, this function returns Equal To 0? FALSE. Returns TRUE if x is equal to y. Otherwise, this function returns Equal? FALSE. You can change the comparison mode of this function. Returns TRUE if FXP includes an overflow status and FXP is the Fixed-Point Overflow? result of an operation that overflowed. Otherwise, this function returns FALSE. Returns TRUE if x is greater than or equal to 0. Otherwise, this Greater Or Equal To 0? function returns FALSE. Returns TRUE if x is greater than or equal to y. Otherwise, this Greater Or Equal? function returns FALSE. You can change the comparison mode of this function. Returns TRUE if x is greater than 0. Otherwise, this function Greater Than 0? returns FALSE. Returns TRUE if x is greater than y. Otherwise, this function Greater? returns FALSE. You can change the comparison mode of this function. Hex Digit? Returns TRUE if char represents a hex digit ranging from 0 Palette Object

through 9, A through F, or a through f. If char is a string, this function uses the first character in the string. If char is a number, this function interprets it as the ASCII value of a character. If char is a floating-point number, this function rounds to the nearest integer. Otherwise, this function returns FALSE. 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 In Range and Coerce 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. Returns TRUE if x is less than or equal to 0. Otherwise, this Less Or Equal To 0? function returns FALSE. Returns TRUE if x is less than or equal to y. Otherwise, this Less Or Equal? function returns FALSE. You can change the comparison mode of this function. Returns TRUE if x is less than 0. Otherwise, this function returns Less Than 0? FALSE. Returns TRUE if x is less than y. Otherwise, this function returns Less? FALSE. You can change the comparison mode of this function. Returns the class number for char. If char is a string, this Lexical Class function uses the first character in the string. If char is a number, this function interprets it as the ASCII value of a character. 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 Max & Min 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. Returns TRUE if number/path/refnum is not a number (NaN), Not A <Not a Path>, or not a refnum. Otherwise, this function returns Number/Path/Refnum? FALSE. Returns TRUE if x is not equal to 0. Otherwise, this function Not Equal To 0? returns FALSE. Returns TRUE if x is not equal to y. Otherwise, this function Not Equal? returns FALSE. You can change the comparison mode of this function. Returns TRUE if char represents an octal digit ranging from 0 through 7. If char is a string, this function uses the first character in the string. If char is a number, this function interprets it as the Octal Digit? ASCII value of a character. If char is a floating-point number, this function rounds to the nearest integer. Otherwise, this function returns FALSE.

Printable?

Select

White Space?

Returns TRUE if char represents a printable ASCII character. If char is a string, this function uses the first character in the string. If char is a number, this function interprets it as the ASCII value of a character. If char is a floating-point number, this function rounds to the nearest integer. Otherwise, this function returns FALSE. 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. Returns TRUE if char represents a white space character, such as Space, Tab, Newline, Carriage Return, Form Feed, or Vertical Tab. If char is a string, this function uses the first character in the string. If char is a number, this function interprets it as the ASCII value of a character. If char is a floating-point number, this function rounds to the nearest integer. Otherwise, the function returns FALSE.

Вам также может понравиться