IF does not match even though it says it matches

why is this failing?

when I tested in the expressions it literally says true

1 Like

Hi @bally Instead of using contains use boolean factor that would work!

boolean what?

@bally In your if Node where you are making a condition, currently it is set to contains click on it select boolean and then select exist then you can make it work.

how is that going to work

1 Like

@bally If i am correct you are trying to match something which is true or not, as your second screenshot shows the output true, is this what you are trying to do?

You are currently trying to match multiple objects with a single object, where $json.currentIds is not a single object its a list and the other object json.id

So that is why when you used javascript query $json.currentIds.includes(id) outputs true cause then it has compared all of those, and what i have suggested is to use this query with the boolean expression enabled so that if this is true the branch goes true else false. So use the one i have suggested earlier with that query

Your “answer” is both wrong and irrelevant. You are not answering the question.

1 Like

@bally Why it does not work in your condition?

can anyone not using AI please answer.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.