trim (Calculation expression – cutting off whitespaces)

See also: isEmpty (Prüfung auf leer), ifEmpty

The function $trim removes the preceding and following whitespaces (space, tabulator, line break, ... ) from the transferred text and returns the new text.

Syntax

$trim(text)

Parameter

Name

Description

text

A text whose leading and attached whitespaces are removed.

Return value

Returns the transferred text cleared of leading and following whitespaces.

Example

Syntax

Result

$trim(Jonas Abend)

'Jonas Abend'

$trim( Jonas Abend )

'Jonas Abend'

$trim(

Jonas Abend

)

'Jonas Abend'

$trim()

empty/null