tobool [function]
tobool( var )
returns a boolean, generated from variable var
using the Conversion rules
- this function is equivalent to sgs_GetBool / sgs_ToBool in the C API
tobool( 5 ); // returns 'true' tobool( "" ); // returns 'false'