Default constructed "Find" node of Map

Hi,

In the description of the output value of the Find node of a map it is written that if the key is not found, the default constructed value is used.
I thought “default constructed” referred to “0” in the case of bytes, integers, floats, etc. It appears that the find node keeps the last found key in memory.

In this example, the map has a single key : 0 with a value of 1. For the first loop execution, the Find node finds 1 as expected. However, in the second execution, it also finds 1 even if there is no key “1”. I thought it would return 0.

Maybe I just didn’t understood what “default constructed” meant but it seems more logic to return a null value if the key doesn’t exist. I based some of my script around it and it took me a little while to find the error :smiley: