The TRUNCATE function truncates a string.
Input | Data Type | Description |
---|---|---|
Input1 | String | The string to truncate. |
Input2 | Integer | Sets the Length property. (optional) |
Output | Data Type | Description |
---|---|---|
Output1 | String | The truncated string. |
Name | Property Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
StartFrom | choice |
Specifies the direction from which truncation is to be performed.
|
||||||
Length | Integer | Specifies the number of characters to be truncated. |
Length
to a value less than one will result in an error.Length
is greater than the length of the input string, an empty string is output.Property | Output | |||
Input1 | Infoteria | StartFrom | Left | teria |
Length | 4 |
Property | Output | |||
Input1 | Infoteria | StartFrom | Right | Info |
Length | 5 |