Character Position

The Character Position action returns the position of a character within a string.

The Character Position action is part of the Technology Preview Extension

This action is part of the Technology Preview Extension, which is also referred to as the sandbox package. The action will be found in the String trigger action category upon successful deployment of the sandbox package,
See Technology Preview Extension for information on obtaining and installing the extension.

Input tab

Parameter Description
String The string value that will be examined for the specific character.
Character The character to try to find in the string value.
Offset The offset within the string to start the search for the character.

Output tab

Parameter Description
Location The offset within the string where the character was found.
A -1 indicates that the character was not found.

For example:

  • Given the String "Hello World", the Character "o", and an Offset of 0 (zero), the action will return the a value of 4 in the Output parameter Location.
  • Using the action again with the same String, Character, and an Offset of 5 will return the a value of 7 in the Output parameter Location.
  • Using the action a third time with the same String, Character, and an Offset of  8 will return a value of -1 in the Output parameter Location, indicating that the character doesn't exist in the string.