Loops skip result if undefined

I have a parallel loop where I’m using the “Iteration Result Path” to add to the loop array.

Is there a way to tell an iteration not to store a value to the final loop array? Some of my iterations I don’t want to store anything that iteration.

I thought passing null might prevent anything being added that iteration but no, I’m just getting a lot of “undefined” in the final array as null is being passed to the return node.

In my case I don’t think I need the performance of the parallel loop so I will try the serial version.

One solution is to use the Array Node’s Compact operation after the loop. Compact removes all falsy items from the array, which includes null and undefined.

Thanks will do that. I realize after it’s not limited to parallel loops.