LogoLogo
About
  • Home
  • Guides
  • BDK
  • REST API
  • Release Notes
  • Text
    • Overview
  • Boolean Checks
    • Check Text Contents
    • Check Text End
    • Check Text Start
    • Check Regex Match
  • Conversions
    • Convert Character to Number
    • Convert Number to Character
    • Convert Text Date to ISO Format
    • Convert Text to HTML
    • Convert Text to Number
    • Convert Text to Lowercase
    • Convert Text to Titlecase
    • Convert Text to Uppercase
  • Combine Texts
  • Extract Elements from Text
  • Extract Markdown Headings
  • Get Text Length
  • Removal
    • Remove Text Using Regex
    • Remove Text Using Substrings
  • Replacement
  • Splitting
Powered by GitBook
On this page
  • Overview
  • Syntax
  • Data
  • Parameters
  • Examples
  • 1. Validating a File Extension
  • 2. Check for a Specific Error Code

Was this helpful?

Export as PDF
  1. Boolean Checks

Check Text Contents

Check if a value is present within a text.

Overview

This operation checks if a particular value (such as a string, float, or integer) exists within a text. It acts as a conditional check, allowing you to perform additional operations based on whether the value exists.

Syntax

the text is "{target}"
the object is "{value}"
if the object is in the text 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

the object

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.

Parameter
Description
Examples
Required

target

The target text in which the search is performed.

  • Batch job completed.

  • Error code: 404

  • document.txt

  • The value of π (pi) is approximately 3.14.

Yes

value

The value to search for (text, float, or integer).

  • job completed

  • 404

  • .txt

  • 3.14

Yes

action

An operation that occurs if value is present in target.

  • say "The format is valid."

Yes

Examples

1. Validating a File Extension

the file name is "document.txt"
the extension is ".txt"
if the extension is in the file name then
  say "The format is valid."
The format is valid.

2. Check for a Specific Error Code

the status log is "Batch job completed with errors. Error code: 404."
the error code is "404"
if the error code is in the status log then
  say "Cannot proceed."
Cannot proceed.

Last updated 7 days ago

Was this helpful?