Operators and Functions For Strings
Operators and Functions For Strings
and Functions
for Strings
+ Concatenates strings.
string_starts (string 1, string 2) TRUE, if the value of string 1 starts with the
value of string 2.
string_ends (string 1, string 2) TRUE, if the value of string 1 ends with the
value of string 2.
For example:
If param = abcdef, then:
• flag = param == abcdef—returns TRUE
• flag = abcdef != ghi—returns TRUE
• new = param + ghi—new is abcdefghi
• new = itos(10 + 7)—new is 17
• new = param + itos(1.5)—new is abcdef2
• where = search(param, bcd)—where is 2
• where = search(param, bcd)—where is 0
• new = extract(param,2,3)—new is bcd
If you use the itos function on a parameter whose value is zero (0), the return
value is an empty string.
string_param = itos(integer_param)
integer_param = -7
string_param = itos(int_param)
string_param = itos(int_param)