User Tools

Site Tools


syntax:functions:endswith

EndsWith(text, end_string)

Category: Text function


Description

This function is a search function used to check if a string (text) ends with a specific text value (end_string). If so, this function returns TRUE. Otherwise, it returns FALSE.


Arguments

ArgumentTypeDescription
textTextAny text, or value that can implicitly converted to text.
end_stringTextThe text string to search for at the end of text.

Return value type: Boolean (TRUE/FALSE)


Remarks

This function is case sensitive.

This function ignores trailing whitespace and other non-printing characters when matching end_string to the end of text.


Examples

endswith( 'Motorola Inc.', 'Inc' ) //Returns FALSE
endswith( 'Ruthless', 'less' ) //Returns TRUE
endswith('Ruthless', 'LESS') //Returns FALSE  (unmatched due to case)


See also

syntax/functions/endswith.txt · Last modified: 2021/08/14 19:02 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki