# How to express the condition "field A has value B or C"?

**URL:** <https://discuss.elastic.co/t/how-to-express-the-condition-field-a-has-value-b-or-c/45558>\
**Category:** Logstash\
**Created:** [March 28, 2016, 6:48am UTC](https://discuss.elastic.co/t/how-to-express-the-condition-field-a-has-value-b-or-c/45558 "2016-03-28T06:48:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![okwap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/okwap/32/572_2.png) [@okwap](https://discuss.elastic.co/u/okwap)\
**Post date:** [March 28, 2016, 6:48am UTC](https://discuss.elastic.co/t/how-to-express-the-condition-field-a-has-value-b-or-c/45558/1 "2016-03-28T06:48:34Z")

</div>

I have tried [A] in ["B", "C"] but it does not work.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 28, 2016, 8:35am UTC](https://discuss.elastic.co/t/how-to-express-the-condition-field-a-has-value-b-or-c/45558/2 "2016-03-28T08:35:37Z")

</div>

I believe that should work. What data type is field A? Can you give a complete example where this doesn't work?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 5:05am UTC](https://discuss.elastic.co/t/how-to-express-the-condition-field-a-has-value-b-or-c/45558/3 "2017-07-06T05:05:12Z")

</div>

Closed on July 6, 2017, 5:05am UTC


