You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adguard-bot
changed the title
Automatic creation of the chain of parent objects in the set-constant scriptlet, if necessary
Improve 'set-constant' — automatic creation of the chain of parent objects if necessary
Oct 7, 2024
Sometimes it happens that a constant needs to be set, for which parent object(s) must also be created.
For example, if I want to set
foo.bar
to atrueFunc
, I have to do the following:However, perhaps the 2nd rule would be enough by itself:
foo
exists and is an object, simply set thebar
property totrueFunc
foo
does not exist, simply create it as an empty object and then set thebar
propfoo
exists but is not an object, there are two options:bar
propThe text was updated successfully, but these errors were encountered: