Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Syntax
Logical.From(value as any) as nullable logical
About
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:
text
: Alogical
value from the text value, either"true"
or"false"
. Refer to Logical.FromText for details.number
:false
ifvalue
equals0
,true
otherwise.
If value
is of any other type, an error is returned.
Example 1
Convert 2
to a logical
value.
Usage
Logical.From(2)
Output
true