# Smartlist: Lexicon Custom Tag Logic using logical OR where it should be AND

**URL:** <https://discuss.lexicondj.com/t/smartlist-lexicon-custom-tag-logic-using-logical-or-where-it-should-be-and/2921>\
**Category:** Bug Reports\
**Tags:** lexicon\
**Created:** [January 31, 2025, 3:17pm UTC](https://discuss.lexicondj.com/t/smartlist-lexicon-custom-tag-logic-using-logical-or-where-it-should-be-and/2921 "2025-01-31T15:17:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spi\_cy](https://discuss.lexicondj.com/user_avatar/discuss.lexicondj.com/spi_cy/32/2617_2.png) [@spi\_cy](https://discuss.lexicondj.com/u/spi_cy)\
**Post date:** [January 31, 2025, 3:17pm UTC](https://discuss.lexicondj.com/t/smartlist-lexicon-custom-tag-logic-using-logical-or-where-it-should-be-and/2921/1 "2025-01-31T15:17:56Z")

</div>

When I define these rules:

 ![image](https://d2jjm7r6i2krmb.cloudfront.net/original/2X/9/9c5c0a67a1f52afb81367909614317b1ed9a9629.png)

I expect to “query” my library selecting all tracks which are tagged with `dnb` _AND_ are not tagged with `liquid`. Instead, I seem to be getting an OR with these conditions, resulting in almost every track from my collection being added to the smartlist.

---

<div class="post-metadata">

**Author:** ![Christiaan](https://discuss.lexicondj.com/user_avatar/discuss.lexicondj.com/christiaan/32/10_2.png) [@Christiaan](https://discuss.lexicondj.com/u/Christiaan)\
**Post date:** [January 31, 2025, 6:46pm UTC](https://discuss.lexicondj.com/t/smartlist-lexicon-custom-tag-logic-using-logical-or-where-it-should-be-and/2921/2 "2025-01-31T18:46:12Z")

</div>

You have the `Match` on any, put it on `All rules`

---

<div class="post-metadata">

**Author:** ![system](https://discuss.lexicondj.com/uploads/default/original/1X/2852b0522290d8aface3d14f693a724cf3adf786.png) [@system](https://discuss.lexicondj.com/u/system)\
**Post date:** [March 2, 2025, 6:46pm UTC](https://discuss.lexicondj.com/t/smartlist-lexicon-custom-tag-logic-using-logical-or-where-it-should-be-and/2921/3 "2025-03-02T18:46:35Z")

</div>

Closed on March 2, 2025, 6:46pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
