tobool [function]

tobool( var )

returns a boolean, generated from variable var using the Conversion rules

tobool( 5 ); // returns 'true'
tobool( "" ); // returns 'false'