Expand my Community achievements bar.

Issue with array "contains..." operators

Avatar

Level 2

Hi. Sorry. Me again. I had an array that looked like this (output of an execution): 

gardensurfer_0-1727861859451.png

 

And in my filter, the condition was intended to allow scenario to continue if "Array does not contain (case-insensitive)"... the 2nd value shown in the array "GO40290". But from this pic, you can see by the green checkmark that the filter let the bundle pass thru. 

gardensurfer_1-1727861999098.png

 

 

Did I set the filter up wrong?: 

 

gardensurfer_3-1727862199357.png

 

Should I have done something differently or am I perhaps misunderstanding how to use the filters or operators? 

 

Thanks!

 

 

 

 

2 Replies

Avatar

Level 10

Hello gardensurfer,

 

The array in your first screenshot is an "array of objects". The filter expects a simple array in a form like this:

 

['GO40290', 'BP40567', 'C040115', 'MO393313']

 

You need to check the map() function in Fusion to "convert" your array before using the filter.

 

map(complex array; key;[key for filtering];[possible values for filtering]) 

 

 

Regards

Lars

Avatar

Level 2

Wow. Thank you. I'll do that! Super helpful!