I am trying to recursive loop throught nested maps, so i need to store the current map and if i find the correct place i want to insert my item, but it seems that the variables are created by value/copy of the map and not by reference (maybe im interpreting it wrong).
In the screenshots i first set the current map to the root map
in the second screenshot im adding to the current map, but the added item is only added to current and not to the original map (folders).
I also tried to use “set by ref” but that did not work.
I thought when i assign an object like a map to a variable its using the reference and not making a new copy of the map.
Hope you get what i mean, sounds like a silly question.