TRUNCATE

The TRUNCATE function truncates a string.

Input/Output

Number of Connections: Min: 1/Max:2
InputData TypeDescription
Input1StringThe string to truncate.
Input2IntegerSets the Length property. (optional)

OutputData TypeDescription
Output1StringThe truncated string.

Property

NameProperty TypeDescription
StartFromchoice Specifies the direction from which truncation is to be performed.
Left [true] - truncate the left portion of the string
Right [false] - truncate the right portion of the string
Lengthint Specifies the number of characters to be truncated.
Modechoice Specifies how to count the length.
String - Count by the number of characters.
Binary - Count by the number of bytes.
EncodingchoiceSpecifies encoding when counting by bytes.

Topic

Examples

PropertyOutput
Input1InfoteriaStartFromLeftteria
Length4
ModeString

PropertyOutput
Input1InfoteriaStartFromRightInfo
Length5
ModeString