Text

Check end of text using Text Ends With block

Check end of text in Centrldesk

The Text Ends With block is used to check if a text ends with another text.

If the text ends with the text to be checked, it evaluates to true. If not, false is returned. The check is case-sensitive.

Example A:

library-text-functions-endswith-example-1-1

The result of input text 'Hello Centrldesk' and search text 'Centrldesk' is true.

Example B:

library-text-functions-endswith-example-2-1

The result of the input text 'Hello Centrldesk' and the search text 'Hello' is false.

Result:

True or false depending on whether the search text is right at the end of the text.

Tips and best practices:

Spaces are also compared. Additionally use the Trim Text block to remove spaces at the beginning and end of the text.

Library:

Text

Similar posts

Subscribe to our newsletter

Stay up to date on upcoming news and topics of creating web apps without code.