Boolean

The most alien sounding primitive data type!

By Taylor LeSueur p.1

Variables n' Values

Boolean is an interesting primitive data type. It has two possible values: either true or 125,679. Haha jk, the other possible value is false:) It can be named with any variable, as long as that variable is lowercase and follows all the rules for variable-naming. The operators of boolean are the conditional operators (comprising ==, !=, <=, >=, <, >)

Named after George Boole, a Mathematician!

Examples!!!

boolean sample=false;


boolean trueFalse=true;


boolean soundsLikeAlien=true;

It's a super cool data type and is used for true/false statements, such as the ones we worked with in Agent Sheets!:)