Hardware manual

Commands and Functions I-L Impact Reference Guide
Datalogic Automation Inc. 5-20
LCASE()
This function converts the string argument to lower case. If the argument is undef, the result is undef.
Example:
var_string = LCASE("ALLLOWERCASE") yields var_string = alllowercase
LEFT()
This function creates a string from the leftmost characters of the first argument. The second argument is the
number of characters to use. Example:
var_string = LEFT("This string",4) yields var_string = This
LEN()
This function returns an integer value indicating a string’s length. If the argument is undef, the result is
undef. Example:
stringsize = LEN ("This") yields stringsize = 4
LIKE
This function compares a string to a string pattern. The pattern can contain a wild-card or joker character.
The wild card character * matches multiple characters. The joker character "?" matches a single character.
To look for * or ? in the string, use the "~" character as an escape character. Example:
If "Bigstring" like "Big*" then
match_bool=True
endif
yields
match_bool = True
Example:
If "Bigstring" like "Big?tring" then
match_bool=True
endif
yields
match_bool = True
Example:
If "Big*string" like "Big~*string" then
match_bool=True
endif
yields
match_bool = True
LINE INPUT
(CPM Only) This function reads a record from an open file. This example reads a record from file number 1
and assigns it to the variable in_string.
line input #1, in_string
LOG()
This function calculates the natural log of the argument. If the argument is less than or equal to zero, the
result is undef. Example: