# Syntax Error on Token: 'EQUAL' when using == in expression

**URL:** <https://forum.inductiveautomation.com/t/syntax-error-on-token-equal-when-using-in-expression/28450>\
**Category:** Ignition\
**Created:** [September 20, 2019, 10:29pm UTC](https://forum.inductiveautomation.com/t/syntax-error-on-token-equal-when-using-in-expression/28450 "2019-09-20T22:29:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpavlicek](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rpavlicek/32/55868_2.png) [@rpavlicek](https://forum.inductiveautomation.com/u/rpavlicek)\
**Post date:** [September 20, 2019, 10:29pm UTC](https://forum.inductiveautomation.com/t/syntax-error-on-token-equal-when-using-in-expression/28450/1 "2019-09-20T22:29:20Z")

</div>

I keep getting " **Syntax Error on Token: ‘EQUAL’**" when I use the == to check a parameter using an if statement in an expression binding.  
I use **if ({SomeParameter}==1,**… and this always produces the syntax error, but works if I use **\>=**. Shouldn’t the double equals sign work?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 20, 2019, 10:37pm UTC](https://forum.inductiveautomation.com/t/syntax-error-on-token-equal-when-using-in-expression/28450/2 "2019-09-20T22:37:37Z")

</div>

Expressions aren’t a “real” programming language (they’re an expression language), so there’s no need to differentiate the “assignment operator” (`=`) from the comparison operator (`==`). Just like if you were, say, writing an Excel formula, you just use the single-equals directly.

---

<div class="post-metadata">

**Author:** ![rpavlicek](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rpavlicek/32/55868_2.png) [@rpavlicek](https://forum.inductiveautomation.com/u/rpavlicek)\
**Post date:** [September 20, 2019, 10:43pm UTC](https://forum.inductiveautomation.com/t/syntax-error-on-token-equal-when-using-in-expression/28450/3 "2019-09-20T22:43:16Z")

</div>

What’s strange is if I do use the single equals sign, it disables the expression tag. This is when it’s put in the expression field, and not the enabled field, which I don’t have anything in. However, I am using the same parameter in other tags “enabled” property to enable or disable them. I wonder if this is causing some type of issue?
