Check Text Start

Check if a text is started by another text value.

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 truth of the statement.

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 NameCan Be Renamed
the textYes

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.

ParameterDescriptionExamplesRequired
inputA text value.Good morning!Yes
prefixA text value to check against the start of the string.GoodYes
actionAn operation that occurs if input starts with prefix.say "Thanks!"Yes

Examples

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