I was looking at some code by an individual and noticed he seems to have a pattern in his functions:
function() {
In such cases I use
switch(true) { case condution1: ... break; case condution2: ... break; }