Creates a logical from the given value.
function (optional
value
as nullable any) as nullable any
Returns a logical
value from the given value
. If the given value
is null
, Logical.From
returns null
. If the given value
is logical
, value
is returned. Values of the following types can be converted to a logical
value:
If value
is of any other type, an error is returned.
Logical
Convert 2
to a logical
value.
Logical.From(2)
true