Berserk Docs
Scalar FunctionsType Functions

isempty

Returns true if the argument is an empty string or is null.

Syntax

isempty(value)

Parameters

Prop

Type

Returns: bool

Examples

Example 1

print isempty('')
print_0 (bool)
true

Example 2

print isempty('Valhalla')
print_0 (bool)
false

On this page