ifelse2_pipe function

This is a generalisation of ifelse that accepts an object and return an objects