# How to check for 'not in' in if statements?

**URL:** https://discourse.gohugo.io/t/how-to-check-for-not-in-in-if-statements/1497
**Category:** support
**Created:** [July 30, 2015, 10:46am UTC](https://discourse.gohugo.io/t/how-to-check-for-not-in-in-if-statements/1497 "2015-07-30T10:46:27Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![jnthnclrk](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jnthnclrk/32/6430_2.png) [@jnthnclrk](https://discourse.gohugo.io/u/jnthnclrk)
#### Post date: [September 20, 2018, 6:49pm UTC](https://discourse.gohugo.io/t/how-to-check-for-not-in-in-if-statements/1497/17 "2018-09-20T18:49:49Z")

</div>

Ignore, the error is related to another function in side the HTML OUTPUT… The else thing works.

---

_[View the full topic](https://discourse.gohugo.io/t/how-to-check-for-not-in-in-if-statements/1497)._
