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.

PropertyData TypeDescription
CaseSensitiveBooleanIf true, it will be a case sensitive search.
ResultVarVarNameThis is the variable that will contain the result. See below for results.
StartPositionIntegerThe start position to begin the search. The first valid character index is 1.
StringToFindStringThe string to find. Variables are accepted.
TextStringThe string to look in. Variables are accepted.

For a sample, see Action Templates.