{ Frameless }

boolean($arg)

The boolean(arg) function returns the effective boolean value for a number, string or node-set.

Arguments

ArgumentType
$argitem()
Return valuexs:boolean

Examples

boolean("")false
boolean(0)false
boolean("0")true
boolean("false")true