@Contains in ADF Pipeline Urgent Issue

Mike Kiser 1,531 Reputation points
2021-04-05T16:28:17.413+00:00

Hello! @Nasreen Akter @MartinJaffer-MSFT
I have an IF Activity in my pipeline....the logic should be

. If this field = "P"or"B" then send "No" else send "Yes"

I am really having issues with the @50 function for this IF Activity.....its the "OR" Expression that I can't get correct.

Your assistance is always appreciated!
Mike Kiser

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,643 questions
0 comments No comments
{count} votes

Accepted answer
  1. MartinJaffer-MSFT 26,036 Reputation points
    2021-04-05T18:53:20.92+00:00

    Hello again @Mike Kiser . Is the below what you are looking for?

    @if( or(equals(pipeline().parameters.value,'P'),equals(pipeline().parameters.value,'B')),'No','Yes')  
    
    @if( contains(array(pipeline().parameters.value),['P','B']),'No','Yes')  
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful