bool

Cast a value to a Boolean.
bool($data ) : Boolean
$data.bool( ) : Boolean
Parameters
$data String | List | Dict | Int | Float | Boolean
Examples

How to check / evaluate the presence of a DomElement