Rewrited long line if to switch syntax