Confused about setting dictionary values

I’m trying to change the value of a boolean dictionary value while a shortcut is running. I seem to be doing something wrong, but I’m not sure what.

Strange. The same steps (at least as far as I can tell) return the correct results for me. You may want to post a link to the actual shortcut.

https://www.icloud.com/shortcuts/8895d2da3f6b4f55bc8a83cb8137ec2d

I suspect the Dictionary in the third step is referring to the magic variable of the first step instead of the second. I set up a shortcut that way and got the same “No” result:
https://www.icloud.com/shortcuts/033f5afa3c68462dba7a7fc3ab7747fe

That seems to have been the issue. I cleared the ‘in Dictionary’ and set it to the dictionary from the set value result. It works now.

How’d you clear the first dictionary? Did you set and then reset a variable?

They cleared the reference to the dictionary in the action and then selected the new dictionary. It wasn’t emptying the original dictionary.

If you are looking for a way to remove entries from a dictionary the Toobox Pro app has an Edit Dictionary action that can do this.