switch (true) { case condition1: //e.g. if (condition1 === true) break; case condition2: //e.g. elseif (condition2 === true) break; default: //e.g. else }