Map function problems, potentially serious

After a couple of years experience with make I have encountered a problem with the map function. Quite simply, map substitutes “empty” instead of the correct value in the returned array, whenever the value is false (if a boolean) or 0 (if a number). It appears to happen when the array passed to map in the first argument has a nested structure, and in particular the array you get from an array aggregator following data store search. I use map all the time after that and mostly the values I map are more complex things, but I was going crazy wondering why I couldn’t produce a list of booleans or numbers, or find them with map.

The attached blueprint shows the problem in 2 modules only.

Curious if I am somehow doing things wrong!

Thanks for any help.

blueprint (1).json (7.2 KB)

Hi @darkfinger,

that is indeed interesting! :smiley:
I looked at your blueprint and I also don’t know why that’s happening.

However, if you do a double map, then it’s being executed correctly.
e.g.

map(map(myarray;data);active)-> true, false

just fyi - maybe it helps! :smiley:

Thanks. Still an issue though.