in reply to Better solution for code reduction?
if ($condition1 && $condition2) { #Block1 } else { #Block2 } [download]