The introduction of AND, OR, and NOT operators to programming languages has really made code a lot easier to read and write. By now, it should be no surprise that certain programmers prefer not to deal with the plethora of Boolean operators and their inherent complexity, instead utilizing elaborate, nested IF blocks. But what makes today's example (from David Koontz) so neat is that the proper solution is commented right above the actual solution ...

//if ((typec!="20") && (typec!="13") && (typec!="5") && (typec!="4"))
if (typec!="20") {
  if (typec!="13") {
    if (typec!="5") {
      if (typec!="4")) {
         SelectType("ALLOC");
	 return;
      }
    }
  }
}

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!