String Truncate

This objects truncates the left or right end of a string as requested.

Privileges

Normal

Input Parameters

Name Type Required Description
String value String Yes This is the string that will be truncated.
Number of characters to remove Number Yes This is the number of characters to remove from the left or the right.
Remove from the left or the right of the string String Yes This is the indicator as to whether the string will be truncated by removing the first characters (left) or the last ones (right).

Output Parameters

Name Type Description
Truncated String String This is the truncated string being outputted.
Result Number Returns a success value of zero or any value other than zero to indicate failure.
Result String String Object execution error details.

Example Input Parameters

Name Type Required Example
String value String Yes The quick brown fox jumps over the lazy dog.
Number of characters to remove Number Yes 4
Remove from the left or the right of the string String Yes Right