# Error if in template module

**URL:** <https://community.hubspot.com/t/error-if-in-template-module/79830>\
**Category:** CMS Development\
**Created:** [April 21, 2023, 3:43pm UTC](https://community.hubspot.com/t/error-if-in-template-module/79830 "2023-04-21T15:43:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NPeralta](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@NPeralta](https://community.hubspot.com/u/NPeralta)\
**Post date:** [April 21, 2023, 3:43pm UTC](https://community.hubspot.com/t/error-if-in-template-module/79830/1 "2023-04-21T15:43:21Z")

</div>

I have a problem. In a template when you put a module inside an if (in this case it compares the language of the page) the if does not work. Always enter the last option and there it stays

Any solution?[Local Development](https://community.hubspot.com/t5/forums/postpage/choose-node/true/board-id/designers_support#)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [April 24, 2023, 5:25pm UTC](https://community.hubspot.com/t/error-if-in-template-module/79830/2 "2023-04-24T17:25:41Z")

</div>

Hey, @NPeralta 👋 Can you provide any additional specifics or context? Screenshots, the specific error message body, relevant code blocks, can all help the community better understand your issue.

Thank you! — Jaycee
