Using a Logic App Condition To Compare Multiple Values From The Same Field

Jonathan Farmer 96 Reputation points
2021-06-24T10:13:20.32+00:00

I am trying to setup a condition that compares multiple values in a field. So if the field contains 1,2 3 do this otherwise do something else. As shown in the attached image. However this only goes false if the field contains the first value. If the second or third value is contained it goes true. How can I make it false for all three values?

109031-la-cond.png

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MikeUrnun 9,777 Reputation points Moderator
    2021-07-12T07:57:04.417+00:00

    Hi @Jonathan Farmer - If you're still hitting this issue, could you try again? I tested again and the same condition worked for me as expected :
    113774-image.png

    The following input evaluates to False:

    {  
      "a":2,  
      "b":3,  
      "c":5  
    }  
    

    The first value (of "a") is not 1 and it evaluates to False likely because "b" and "c" are also being tested against their values.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.