strLookup (Functionblock) |
Top Previous Next |
strLookup will compare a string with up to 4 different strings and report if there is a match. The function is not case sensitive - so "Fox" and "fox" will be equal.
Input: str : STRING String that the function will try to match with str1, str2, str3, or str4.
str1 : STRING String 1 that the function will compare with str.
str2 : STRING String 2 that the function will compare with str.
str3 : STRING String 3 that the function will compare with str.
str4 : STRING String 4 that the function will compare with str.
Output: match : INT (0..4)
Declaration: FUNCTION_BLOCK strLookup;
Example: INCLUDE rtcu.inc |