question

JonathanFarmer-9122 avatar image
0 Votes"
JonathanFarmer-9122 asked MikeUrnun answered

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

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
la-cond.png (18.8 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @JonathanFarmer-9122 - Sorry for the late reply. I'm able to repro the same behavior -- I will dig deeper and share my findings here soon.

0 Votes 0 ·

1 Answer

MikeUrnun avatar image
0 Votes"
MikeUrnun answered

Hi @JonathanFarmer-9122 - 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.




image.png (60.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.