# Add "does not contain" to Advanced Trigger Conditions

**URL:** <https://community.folivora.ai/t/add-does-not-contain-to-advanced-trigger-conditions/31080>\
**Category:** Feature Requests\
**Created:** [March 31, 2023, 6:51pm UTC](https://community.folivora.ai/t/add-does-not-contain-to-advanced-trigger-conditions/31080 "2023-03-31T18:51:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shnub](https://community.folivora.ai/user_avatar/community.folivora.ai/shnub/32/22056_2.png) [@Shnub](https://community.folivora.ai/u/Shnub)\
**Post date:** [March 31, 2023, 6:51pm UTC](https://community.folivora.ai/t/add-does-not-contain-to-advanced-trigger-conditions/31080/1 "2023-03-31T18:51:49Z")

</div>

Currently the advanced conditions for triggers offer "is", "is not" and "contains" as verbs, but not "does not contain". It would be helpful if this was added.

Example: I'm trying to prevent a key sequence from triggering when a certain key other is pressed (Cmd in this case, key code 55). However, in the advanced conditions, if for `currently_pressed_keyboard_keys` I use "is not" and "55," this only prevents the trigger from triggering if _only_ Cmd is pressed, which is not useful since by definition my key sequence will have other keys pressed and thus not just "55," as value for `currently_pressed_keyboard_keys`. A "does not contain" option would solve this.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 31, 2023, 6:58pm UTC](https://community.folivora.ai/t/add-does-not-contain-to-advanced-trigger-conditions/31080/2 "2023-03-31T18:58:56Z")

</div>

This works by changing the "all of the following are true" to "none of the following are true"

 ![image](https://community.folivora.ai/uploads/default/original/3X/4/8/489e7070fe8f9ec2778b52bb08f34f07448ef9d1.jpeg)

You can create such nested rules by holding the option key while hitting the plus button

---

<div class="post-metadata">

**Author:** ![Shnub](https://community.folivora.ai/user_avatar/community.folivora.ai/shnub/32/22056_2.png) [@Shnub](https://community.folivora.ai/u/Shnub)\
**Post date:** [March 31, 2023, 8:31pm UTC](https://community.folivora.ai/t/add-does-not-contain-to-advanced-trigger-conditions/31080/3 "2023-03-31T20:31:22Z")

</div>

Ah, yeah, that works, thanks. Bit cumbersome because every negation (except for "is") will need its own "None of the following" – not so good for more complex conditions. But probably difficult to implement a proper "not" in-line with so many different possible verbs.

The nesting option should really be more discoverable though. At the very least it should have the same text hint for normal triggers as for CAGs (like in your screenshot). And I think I would prefer "↳" over "…" as the button icon for adding a nested condition.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 31, 2023, 8:36pm UTC](https://community.folivora.ai/t/add-does-not-contain-to-advanced-trigger-conditions/31080/4 "2023-03-31T20:36:00Z")

</div>

unfortunately this is a macOS standard control, which doesn't offer much/any customizability.

But I can add the text like for CAGs

Maybe at some point I'll create my own condition builder, but this stuff is more complicated than it looks like
