in reply to if/else options

see Sql::Abstract that is what you need