contents   index   previous   next



Boolean.toString()

syntax:

boolean.toString()

return:

string - "true" or "false" according to the value of the Boolean object.

 

description:

This toString() method returns a string corresponding to the value of a Boolean object or primitive data type.

 

see:

Boolean toString(), boolean type

 

example:

var name = "Joe";

var b = new Boolean( name === "Joe" );

var bb = false;

Screen.writeln(b.toString());   // "true"

Screen.writeln(bb.toString());  // "false"