# Use of 'or' and 'and'

**URL:** https://community.silverfin.com/t/use-of-or-and-and/1377
**Category:** Templates
**Tags:** operators
**Created:** [February 7, 2019, 11:43am UTC](https://community.silverfin.com/t/use-of-or-and-and/1377 "2019-02-07T11:43:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![neilmiller](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@neilmiller](https://community.silverfin.com/u/neilmiller)
#### Post date: [February 7, 2019, 11:43am UTC](https://community.silverfin.com/t/use-of-or-and-and/1377/1 "2019-02-07T11:43:22Z")

</div>

Hello,

Can you use ‘or’ in the coding like below.

{% if custom.check.[category] == ‘Yes First Year’ or ‘Yes Significant Changes’ %}

I am trying to get a comments box to appear if either ‘Yes First Year’ or ‘Yes Significant Changes’ is selected from a drop down with 3 items. I think using ‘and’ works if you need two things to be connected but not sure if ‘or’ does.

Cheers

Neil

---

<div class="post-metadata">

### Author: ![Kimberly\_Vlietinck](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/kimberly_vlietinck/32/1496_2.png) [@Kimberly\_Vlietinck](https://community.silverfin.com/u/Kimberly_Vlietinck)
#### Post date: [February 7, 2019, 12:16pm UTC](https://community.silverfin.com/t/use-of-or-and-and/1377/2 "2019-02-07T12:16:35Z")

</div>

Hi @neilmiller

It is definitely possible to use “or” in an if-statement.

You can find some more information on the different operators that are supported by Liquid code in our guide [here](https://developer.silverfin.com/docs/operators).

Kind regards,  
Kimberly

---

<div class="post-metadata">

### Author: ![neilmiller](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@neilmiller](https://community.silverfin.com/u/neilmiller)
#### Post date: [February 8, 2019, 8:11am UTC](https://community.silverfin.com/t/use-of-or-and-and/1377/3 "2019-02-08T08:11:14Z")

</div>

Thank you again Kimberley, I did look at that and tried with var 1 = a or var 1 = b but think I used " " instead of ’ ’ so wasn’t sure whether it worked. I’ve got it to work now, thank you 😃
