Boolean Condition

  A variety of conditions all lead to the same action. Some conditions may enable, inhibit or reverse the sense of others. Therefore:
Test each condition in sequence and accumulate the result in a single boolean variable. Test this variable once to conditionally execute the common action.
  See also Kerievsky's Extract Boolean Variable From Conditional refactoring.
 

PDP-8 Simulator
© 1975, 1998, Ward Cunningham
all rights reserved