Clips the string to a maximum character length, optionally appending a suffix (like "…") when truncation occurs. Strings already within the limit are not modified.
Interface
Inputs
| Parameter | Details | Possible Types |
|---|---|---|
| String | The string to truncate. Primary Input | String |
| Length | The maximum number of characters allowed, including the suffix if one is appended. Default: | u32 |
| Suffix | A suffix appended to indicate truncation occurred, unless empty. Its length counts towards the character budget. Default: | String |
Outputs
| Product | Details | Possible Types |
|---|---|---|
| Result | The value produced by the node operation. Primary Output | String |