# 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:

<figure><img src="https://277214568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUeGWHuijBPr8Og1Gta%2Fuploads%2Fl5qMoCsq8O1IOQIOLxuo%2F2025-03-21%2013.09.00.gif?alt=media&#x26;token=7a7830aa-55f9-44ff-bcb6-43388ff93c78" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://277214568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUeGWHuijBPr8Og1Gta%2Fuploads%2FtP28Tm0eEiQPgEul9hRV%2FScreenshot%202025-03-21%20at%201.09.41%E2%80%AFPM.png?alt=media&#x26;token=582b814e-577d-4bb1-a197-d600061fae4c" alt=""><figcaption></figcaption></figure>

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

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

{% hint style="info" %}
**A note on inverted customer account keys**

When you invert a [customer account key condition](https://www.locksmith.guide/keys/customer-account-keys) — 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](https://www.locksmith.guide/keys/more/combining-key-conditions)
{% endhint %}
