Boolean
You should only use a Boolean if you have something which is either true or false. You
should not use it to distinguish between two different cases like left or right, or
horizontal or vertical. In these cases you should use specialized domains instead.
domains
direction = left; right
orientation = horizontal; vertical
When you have a Boolean variable name it after the "true"-condition.
Thus, a variable that expresses that something is published if it is true
and not published if it is false should be called Published.
|