> For the complete documentation index, see [llms.txt](https://docs.kognitos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kognitos.com/legacy/legacy-experience/automation-areas/text/boolean-checks/check-text-end.md).

# Check Text End

## Overview

This operation checks if a text ends with another text value. It acts as a conditional check, allowing you to perform additional operations depending on the truth of the statement.

## Syntax

This operation has two different formats:

### Option 1

```
the text is "{input}"
if the text is terminated by "{suffix}" then
    {action}
```

### Option 2

```
the text is "{input}"
if the text is ended by "{suffix}" then
    {action}
```

## Data

The table below lists the names of the data elements in this operation and indicates which can be renamed in the syntax.

| Data Name | Can Be Renamed |
| --------- | -------------- |
| the text  | Yes            |

## Parameters

**Parameters** are placeholders for data. Refer to the table below for details on each parameter in this operation. In the syntax, replace parameters with your own values.

<table><thead><tr><th width="110.5703125">Parameter</th><th width="306.9140625">Description</th><th>Examples</th><th>Required</th></tr></thead><tbody><tr><td><code>input</code></td><td>A text value.</td><td>Have a good day</td><td>Yes</td></tr><tr><td><code>suffix</code></td><td>A text string value to check against the end of another string.</td><td>day</td><td>Yes</td></tr><tr><td><code>action</code></td><td>An operation that occurs if <code>input</code> ends with <code>suffix</code>.</td><td>say "Thanks!"</td><td>Yes</td></tr></tbody></table>

## Examples

### 1. Using "is ended by"

{% tabs %}
{% tab title="Automation" %}

```
the statement is "Processing complete!"
if the statement is ended by "complete!" then
  say "All tasks are finished!"
```

{% endtab %}

{% tab title="Results" %}

```
All tasks are finished!
```

{% endtab %}
{% endtabs %}

### 2. Using "is terminated by"

{% tabs %}
{% tab title="Automation" %}

```
the greeting is "Welcome to Kognitos!"
if the greeting is terminated by "Kognitos!" then
  say "Let's start automating!"
```

{% endtab %}

{% tab title="Results" %}

```
Let's start automating!
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.kognitos.com/legacy/legacy-experience/automation-areas/text/boolean-checks/check-text-end.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
