I’m not sure if this is a feature or a bug, but I’m leaning more towards it being a bug. I’ll try to describe it clearly.
Actions and conditions for variables will not clear numbers or strings if changed to a boolean type. So if the variable’s type is changed back later (to a number or string), the original value will be restored.
This may cause issues or confusion when copying actions or conditions and changing them instead of adding a new ones, or when using the search because the “hidden” values will still show up in the search results.
If a string variable is changed to a boolean type then copied 10 times in different events, all the 10 copies will still hold the original string value even if they’re all booleans.
Here’s an example:
-
Create an action or condition for a string or a number variable.
-
After changing the variable to another type, the old “some text” will still show up in the search, even though the event doesn’t contain this text.
-
Changing the type back to a string or number will bring back the “some text” because it never cleared this value.