Function
judo_tobool
Boolean value.
Since v1.0
bool judo_tobool(
judo_value *value)
Parameters π
value | in | Value to query. |
Return Value π
True or false depending on the boolean value of value
.
Discussion π
The judo_tobool function returns the boolean value of value
. If value
is a boolean type, then it returns true
or false
depending on whether the boolean value is true
or false
. If value
is of any other type, the implementation always returns false
. Itβs recommended to verify that value
is a boolean with judo_gettype before calling this function.