in reply to need advice on conditionals

How about else? What's wrong with either making it a subroutine or stuffing the code in the block of your first example?