if ($DEBUG) { # do debug stuff } else { # whatever }