When Boolean logic is used, the result should be very clear. True or False; that’s it. Or is it? The unfortunate problem with Boolean logic is that (depending on the situation), the value you are trying to determine doesn’t exist. In programming terms, it is NULL. Now, some programming languages make up for this by strongly typing variables. This means that Boolean variables are not allowed to be NULL, since it is neither True or False. However, this doesn’t play well once the user is given control of the options.
(I plagiarized this, no sense reinventing...) |