Change a structure value of a map variable

I have a map variable with a string as key and a structure as value.

I want to change the content of the structure

image?

These two variants do not work

Thanks for help

1 Like

Keys and Values are likely to return copies. You have to use the direct map functions instead: Add and Remove ( Add will overwrite your element if it already exists ).

3 Likes

Perfect, it works, thanks for help.

1 Like

Glad it worked, please don’t forget to mark the answer as accepted for future Googlers :slight_smile:

1 Like

Thanks! Didn’t expect Add to replace the existing key.