# Check Text Start

## Overview

This operation checks if a given text's starting characters match another text value. It acts as a conditional check, allowing you to perform additional operations depending on the statement's truth.

## Syntax

```
the text is "{input}"
if the text is started by "{prefix}" 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="126.98046875">Parameter</th><th width="234.56640625">Description</th><th width="266.265625">Examples</th><th>Required</th></tr></thead><tbody><tr><td><code>input</code></td><td>A text value.</td><td>Good morning!</td><td>Yes</td></tr><tr><td><code>prefix</code></td><td>A text value to check against the start of the string.</td><td>Good</td><td>Yes</td></tr><tr><td><code>action</code></td><td>An operation that occurs if <code>input</code> starts with <code>prefix</code>.</td><td>say "Thanks!"</td><td>Yes</td></tr></tbody></table>

## Examples

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

```
the sentence is "Good morning, everyone!"
if the sentence is started by "Good" then
    say "Rise and shine!"
```

{% endtab %}

{% tab title="Results" %}

```
Rise and shine!
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
