Expression String Functions
The following Boolean string-comparison functions are supported in expressions.
All functions receive two string parameters.
Each parameter can be provided either as a constant literal string (LITERAL), or as an attribute variable (ATTRIBUTE) that represents a string attribute (of type "S") whose value will be used in the comparison.
ends
ends(s1, s2)
Checks whether the first string (
For example, ends('4-Jun-2018', year) returns true for a "2018".
contains
contains(s1, s2)
Checks whether the first string (
For example, contains(rainbow, 'yellow') returns true for a "red, orange, yellow, green, blue, indigo, violet".
length
length(s)
Returns the length of the provided string (
For example:
length("123")returns 3.length(mystr)for amystr attribute whose value is"Hello World!"returns 12.length ('abc' + 'efg')returns 6.
starts
starts(s1, s2)
Checks whether the first string (
For example, starts(fullName, 'Jo') returns true for a "Jon Snow".