Truncate¶
Truncates a string to at most the given number of characters.
If the input string is longer than the configured maximum length, it is truncated; if it is shorter, it is returned unchanged.
Parameters¶
- 1 —
maxLengthMandatory — accepts: INT -
Maximum length the input string can have after truncation.
Input type¶
STRING
Output type¶
STRING
Examples¶
Truncate to 5 characters
Truncate to 40 characters