# Disallow assigning values within conditions

**URL:** <https://es.discourse.group/t/disallow-assigning-values-within-conditions/1972>\
**Category:** 💡 Ideas\
**Created:** [March 27, 2024, 3:35pm UTC](https://es.discourse.group/t/disallow-assigning-values-within-conditions/1972 "2024-03-27T15:35:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rollanibrayev](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@rollanibrayev](https://es.discourse.group/u/rollanibrayev)\
**Post date:** [March 27, 2024, 3:35pm UTC](https://es.discourse.group/t/disallow-assigning-values-within-conditions/1972/1 "2024-03-27T15:35:17Z")

</div>

This would make debugging easier when mistakenly using an assignment operator (`=`) instead of an equality operator (`==` or `===`).

---

<div class="post-metadata">

**Author:** ![aclaymore](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/aclaymore/32/501_2.png) [@aclaymore](https://es.discourse.group/u/aclaymore)\
**Post date:** [March 27, 2024, 6:22pm UTC](https://es.discourse.group/t/disallow-assigning-values-within-conditions/1972/2 "2024-03-27T18:22:58Z")

</div>

Hi @rollanibrayev, this sounds like it falls under: [GitHub - tc39/faq](https://github.com/tc39/faq#can-we-change-the-way-this-language-feature-or-api-works)
