Berserk Docs
Scalar FunctionsType Functions

asbool

Extract a boolean from a dynamic or pass through a bool value. Other types become null.

Syntax

asbool(value)

Parameters

Prop

Type

Returns: bool

Examples

Example 1

print asbool(dynamic(true))
print_0 (bool)
true

On this page