Skip to content

Find one string within another

This action will find one string within the given text. It stores the position of the first occurrence in the specified variable or 0 if there is no occurrence.

Useful for command-line switches for instance.

Property Name Data Type Description
CaseSensitive Boolean If true, it will be a case sensitive search.
ResultVar VarName This is the variable that will contain the result. See below for results.
StartPosition Integer The start position to begin the search. The first valid character index is 1.
StringToFind String The string to find. Variables are accepted.
Text String The string to look in. Variables are accepted.

About ResultVar value:

The variable will be set to the position (in character) of the string to find, or 0 if the string is not found.

For a sample, see Action Templates.

All available actions