Really can't get my head around this, I have tried multiple things.
Here is my array:
It definitely 100% contains the number 8831
Here is my filter:
@equals(item(), 8831)
Here are the results:
Why??
Solved! Go to Solution.
Ok I think it might have been a bug?
I added single quotes in the basic mode editor, and then I checked it in advanced mode and it was adding double quotes inside the single quotes? and then when saving it would remove the single quotes again.
Bizarre. I deleted and recreated the action and it seems to be working now.
Your array is of type string, but your condition is using an integer for comparison.
Try the following:
@equals(item(), '8831')
Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.
Hi @SylvieLet17
you have created a simple array and that too of String type ("11059","19198"...).. So, in the expression you need to put the value within quotes.
Personally, i think it would be much easier if you use a condition control.
Thanks Ellis, but this returned the same result
Thanks, I had tried this, as well as double quotes and neither worked
This is what I tried, starting with an array variable:
Result:
And an array in a Compose action also worked with the same filter:
Ellis
Perhaps data item '8831' isn't in this array?
Can you scroll further down the data items and visually confirm that 8831 is there:
Could you also try the condition with another array item such as '11059' as that we know that this item is in the data set (we can see it!).
Ellis
Ok I think it might have been a bug?
I added single quotes in the basic mode editor, and then I checked it in advanced mode and it was adding double quotes inside the single quotes? and then when saving it would remove the single quotes again.
Bizarre. I deleted and recreated the action and it seems to be working now.