Check Text End

Check if a text ends with another text value.

Overview

This operation checks if 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 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.Have a good dayYes
suffixA text string value to check against the end of another string.dayYes
actionAn operation that occurs if input ends with suffix.say "Thanks!"Yes

Examples

1. Using "is ended by"

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

2. Using "is terminated by"

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