Reputation: 1017
I have a lookup that runs and returns a status of 0/1,as per below;
Status
1
I want to use the if condition, where if the value = 1, then execute another pipeline.
I am trying to do this using If Condition, with the following expression;
@equals(activity('Dependency Checker').output.firstRow,1)
But it does not evaluate as true and therefore run the activity.
When I check the output via debug, the output is as follows;
And it does not execute the pipeline (the true activity).
Edit -
Here is the output of the lookup, it is capturing the value 1;
I added a wait task to the true/false activities, and as a result, i've noticed it is initiating the False activity.
Upvotes: 0
Views: 5006
Reputation: 4945
Based on the Lookup activity output: You need to use the below expression
@equals(activity('Dependency Checker').output.firstRow['Status'],'1')
Upvotes: 2