Versions Compared

Key

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

Action script to trim cut a string from the right to a given length from right.

Input

Takes variable containing string to be trimmed.

Length

Sets length for string to be trimmed to.

Output

Sets name of variable to be assigned final string. .

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 RightString step is configured as:


Code Block
Input: nj.Source
Length: 5
Output: targetExtension

The resulting value of targetExtension is '08100'

Input

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

Length

The number of characters to extract. 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

The name of the Route Variable the resulting value is stored into.