includes
The includes task searches an input variable for a predefined value and returns true if the value is found, or false if it is not.
The includes task is case sensitive.
Potential use case
Use this task if you need to scan an email list for the word “unsubscribe” and execute a process to remove that email address from a database.
Properties
Examples
Example 1
In this example:
- The
strvariable is statically set to12 Dollars And 43 Cents. - The
searchStringisCents. - The
positionis statically set to19. - The
resultisfalse— starting at position 19, thestrvalue reads"ents", so no complete match ofCentsis found from that position onward.

Example 2
In this example:
- The
strvariable is statically set to12 Dollars And 43 Cents. - The
searchStringiscents(lowercase). - The
positionis statically set to18. - The
resultisfalse— the task is case sensitive, so"cents"does not match"Cents".

Example 3
In this example:
- The
strvariable is statically set to12 Dollars And 43 Cents. - The
searchStringisCents. - The
positionis left blank, defaulting to0. - The
resultistrue—"Cents"does appear within thestrvariable.
