For the complete documentation index, see llms.txt. This page is also available as Markdown.

Inverting conditions in Locksmith

There are many instances in which it is useful for a key to grant access if the opposite of your key condition is true.

Locksmith makes it easy to invert keys. To do so, simply click the box next to "invert" when you're editing the key:

Notice that when this is done, the wording will update, inverting the key condition logic:

Make sure to "Save" the lock, and you're done!

As always, feel free to contact us via email at team@uselocksmith.com.

A note on inverted customer account keys

When you invert a customer account key condition β€” such as "is tagged with," "has purchased," or "email contains" β€” the inverted key will also grant access to visitors who are not signed in, since they technically meet the inverted condition β€” they have no customer account details (tags, email, purchase history, etc.) associated with them.

If you want to require sign-in, combine the inverted condition with an "is signed in" condition inside the same key:

Combining key conditions

Last updated

Was this helpful?