I have a map in which I need to set a value. I can remove the map and add a new one with updated data but that changes the order. I’m not sure how to set a value as when I get the values and use set array element, it doesn’t work.
The correct node for updating map variables is ‘add map’. If the key already exists, it values will be updated. Else, new key is added with correspondent values. Typically, the key is then used with Find map, so a queried key is going to be used as search parameter. That find node outputs the correspondent value, also it has a bool output to be used with a Branch node.
Take a look ay Matthew’s channel, where he explains everything.
11 Likes
Thanks! Makes sense!
1 Like
Glad it helped.