Text

Contains a text another text using Text Contains block

Contains a text another text in Centrldesk

The Contains block is used to check if a text contains another text.

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

Example A:

library-text-functions-contains-example-1-1

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

Example B:

library-text-functions-contains-example-2-1

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

Result:

True or false depending on whether the text contains the search text.

Tips and best practices:

The check is case-sensitive. To solve the case-sensitive problem, use the To Lower Text or the To Upper Text block before comparing texts.

Library:

Text

Similar posts

Subscribe to our newsletter

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