pipeline to if