isEmpty (Check for empty)

Prev Next

See also: ifEmpty, if (if, then, else), trim (Calculation expression – cutting off whitespaces)

The $isEmpty function returns true if the transferred text is empty/null.

Tooltip

Syntax: $isEmpty(text)

Name

Description

text

The text, which is checked for empty.

â–ºIMPORTANTâ—„ The transferred value is cleared of leading or attached whitespaces (e.g. spaces, tab, etc.).

Thus a value, which consists only of spaces, is considered empty.

f the transferred text is empty, true is returned, otherwise false.

Examples: $isEmpty( ) – returns true, $isEmpty(0) returns false, $isEmpty(Hallo) returns false

Syntax

$isEmpty(text)

Parameter

Name

Description

text

The text, which is checked for empty.

â–ºIMPORTANTâ—„ The transferred value is cleared of leading or attached whitespaces (e.g. spaces, tab, etc.).

Thus a value, which consists only of spaces, is considered empty.

Return value

If the transferred text is empty, true is returned, otherwise false.

Example

Syntax

Result

$isEmpty(Jonas Abend)

false

$isEmpty(0)

false

$isEmpty()

true

$isEmpty( )

true

$isEmpty( )

true