Sunday, January 31st, 2010

Assigning Boolean Values

The one time that you don’t need to compare values to make a decision is when the value is what is known as a Boolean value. A Boolean value is either true or false (those are the only two values it can have) and we can therefore make decisions based on the value of a Boolean without having to compare it to anything else. We can of course also assign the result of a comparison to a Boolean value for later use.

Assigning Boolean Values

Tags: , ,

Comments are closed.