Built-in Functions → endsWith

endsWith() is a boolean function that returns true if a string value (first parameter) ends with a given string pattern (second parameter), otherwise, it returns false.

Note

The endsWith() function is not case sensitive.

Signature

endsWith(string value,string pattern)
  • string value : string expression to search
  • string pattern : string expression to find in the string value

Returns

bool

Example

Find all countries in the expression COUNTRY_NAME that end with the 'n' character.

endsWith(SALES.COUNTRIES.COUNTRY_NAME,"n")