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.