# Sytax Error Code

**URL:** <https://forum.inductiveautomation.com/t/sytax-error-code/10353>\
**Category:** Ignition\
**Created:** [August 17, 2015, 12:49pm UTC](https://forum.inductiveautomation.com/t/sytax-error-code/10353 "2015-08-17T12:49:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alewayhar](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@alewayhar](https://forum.inductiveautomation.com/u/alewayhar)\
**Post date:** [August 17, 2015, 12:49pm UTC](https://forum.inductiveautomation.com/t/sytax-error-code/10353/1 "2015-08-17T12:49:58Z")

</div>

I’m working on making something visible or not based on the user that is logged in (Not on the role that they have). My thought was to write a script tied to the visible option under common properties. My code looks like:

`if {[System]Client/User/Username} = {_A_Name_/GoldTest7_7Simulator/Sensor /Sensor 1/Operator}
	return true
else return false`

And I keep getting the error:

Syntax Error on Token: ‘BOUND CONST’ (Line 1, Char 61)

I have no clue what that means, and I was wondering if there was some sytax I was missing, or if there was an easier way to accomplish what I am trying to do. Thanks in Advance for the help!

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [August 17, 2015, 1:47pm UTC](https://forum.inductiveautomation.com/t/sytax-error-code/10353/2 "2015-08-17T13:47:57Z")

</div>

Hi,

It looks like you are mixing Python syntax and expression language syntax. Are you trying to write an expression or write a Python script?

If you are writing an expression then this will work:

`{[System]Client/User/Username} = {_A_Name_/GoldTest7_7Simulator/Sensor /Sensor 1/Operator}`If they are equal then true is returned, otherwise false is returned. No "if’ condition needed.

Best,
