# How to have if "string === string" in template?

**URL:** <https://meta.discourse.org/t/how-to-have-if-string-string-in-template/158404>\
**Category:** Development\
**Created:** [July 21, 2020, 4:11pm UTC](https://meta.discourse.org/t/how-to-have-if-string-string-in-template/158404 "2020-07-21T16:11:34Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![JQ331](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@JQ331](https://meta.discourse.org/u/JQ331)\
**Post date:** [January 25, 2021, 3:41pm UTC](https://meta.discourse.org/t/how-to-have-if-string-string-in-template/158404/7 "2021-01-25T15:41:36Z")

</div>

I actually never got this to work myself and had to move on. It seemed silly to spend so much time on what normally would be a basic coding exercise. In my case I think it was likely a bit of incorrect syntax here and incorrect syntax there, but I never found full working examples. I would also be grateful for a full working example of how to do an` if string === string.`

---

_[View the full topic](https://meta.discourse.org/t/how-to-have-if-string-string-in-template/158404)._
