bool Syntax bool(X) Arguments X can be of any data type. Details Convert the input to a Boolean value. Examples x=bool() x; // output: 00b typestr x // output: BOOL bool(`true`false) // output: [1,0] bool(100.2) // output: 1 bool(0) // output: 0
Examples x=bool() x; // output: 00b typestr x // output: BOOL bool(`true`false) // output: [1,0] bool(100.2) // output: 1 bool(0) // output: 0