I'm having a little trouble with this one.
So I have a dictionary object. At runtime I create two separate instances of this object. Each instance is given an identical set of keys. One is intended to store some default values so that I can restore the other instances values to an original state periodically.
However, I also want to skip a key in the process. What I'm currently calling the "alias" key, which stores a little name of the instance to help differentiate between the two instances.
To make this a little easier (or so I thought), I placed this dictionary object in two families: "dict1" and "dict2".
Then, on a function, I pick each instance through the two families.
dict1 - Key "alias" = "temp"
dict2 - Key "alias" = "default"
Now, these two instances and only these two should be picked.
Then, in a sub-event I use a "for each key" condition on the "dict1" family.
And in another sub-event I invert the following condition.
dict1 - Current key = "alias"
Now in the actions I do:
dict1 - Set key dict1.CurrentKey to value dict2.Get(dict1.CurrentKey)
I thought that this would loop through each key and match the value unless the current-key matched the key that I didn't want to restore. In this case the "alias" key.
However, currently it's not skipping that key.
Any help would be greatly appreciated. I may just be misunderstanding something simple. If necessary I can provide an example .capx