> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://docs.groupalarm.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Elements of the flow - Check for string

The Check for string element is a Yes / No query that checks a given text for a defined string. If the string is found, the flow continues on the `Yes` path, whereas the `No` path is followed if the string is not found.

||| ❗️ If you move or delete the elements [Check for string](/en/article/elements-of-the-flow-check-for-string-1vbj9zi/) or [Check for one or more strings](/en-us/article/elements-of-the-flow-check-for-one-or-more-strings-1cbcrq5/), only the subsequent elements on the `Yes` path will remain. All elements on the `No` path will be automatically deleted. If you want to keep these elements, move them separately first.

An example would be checking the alarm text for the string "testalarm". In this way, for example, the events of alarms containing this specific string could be closed more quickly in an automated manner.

![](https://storage.crisp.chat/users/helpdesk/website/91fefd8b4b0ac000/flowcheckforstringen1_2d8poh.png)

**Configuration**

1️⃣ The text to be checked is specified in the input function.

2️⃣ In the input field for the contained string, the character string to be searched for is specified. The string must occur exactly in the text to get a positive result.

3️⃣ The function for the case sensitivity allows you to specify whether this should be taken into account when checking the character string. 

![](https://storage.crisp.chat/users/helpdesk/website/91fefd8b4b0ac000/flowcheckforstringen2_i1r0dv.png)