cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Mapping Question - Always make at least one node

Former Member
0 Likes
767

Quick mapping question that I can't figure out.

I have a UDF that takes some arguments and returns true/false depending on the values. For each True value, I want to make destination node <access>. This works fine (see screenshot). However, if my UDF results in False for every value in the queue, I still want one <access> node to be created. I have tried to accomplish this in various ways (if/then/else, another UDF that looks at all values of the queue etc), and I keep messing up contexts etc. Probably something simple I am overlooking.

View Entire Topic
markangelo_dihiansan
Active Contributor

Hi,

Instead of the createIf, just use ifWithoutElse and then mapWithDefault afterwards.

Testing with all false

Regards,

Mark