Skip to main content

Overview

The truncate transformation truncates the input to a specific size, with optional start position and ellipsis.

Syntax

truncate(<variable>, start=0, end=10, elipsis=false)

Parameters

ParameterTypeRequiredDefaultDescription
variablestringYes-The text to truncate
startnumberNo0Start position for truncation
endnumberNo10Maximum character length
elipsisbooleanNofalseWhether to add ellipsis (…) at the end

Examples

truncate(<variable>, 0, 10, false)
truncate(<variable>, start=0, end=20, elipsis=true)