Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Trims Action script to cut a string to a given length from the left.

Example:

The following example will take the last three digits from the variable 'nj.Source' and store them in the variable 'targetExtension'.

The Route Variable nj.Source contains '0383208100'.

The LeftString step is configured as:


Code Block
Input

...

: nj.Source
Length: 3
Output: targetExtension

The result is that targetExtension will contain the value '038'.

Input

Takes name of a variable containing the value to extract a sub string to be trimmed.

Length

Sets the length for the string to be trimmed tofrom

Length

The number of characters to extract. If the Length goes off the end of the string then a result will still be returned but it will be less than the desired length.

Output

sets the The name of the variable to output final string tothe Route Variable the resulting value is stored into.