# Vision Client tag value

**URL:** <https://forum.inductiveautomation.com/t/vision-client-tag-value/49743>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [August 10, 2021, 7:18am UTC](https://forum.inductiveautomation.com/t/vision-client-tag-value/49743 "2021-08-10T07:18:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mukul](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mukul/32/26858_2.png) [@mukul](https://forum.inductiveautomation.com/u/mukul)\
**Post date:** [August 10, 2021, 7:18am UTC](https://forum.inductiveautomation.com/t/vision-client-tag-value/49743/1 "2021-08-10T07:18:03Z")

</div>

Hi

I am trying to open and close the Slide in screen from the left with the press of same icon  
for some reason there is an error when i try to check the value of client tag in the if else statement

 ![Screenshot_1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/6/c6dc4dc7498c56cccf4fbc1aaf677aa04b3dbe11.png)

Parse error for event handler “mouseClicked” SyntaxError: (“no viable alternative at input ‘SlidescreenLeftVisible’”, (’’, 1, 11, ‘if [client]SlidescreenLeftVisible.Value == 1:\n’))

---

<div class="post-metadata">

**Author:** ![jonathan.taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonathan.taylor/32/4048_2.png) [@jonathan.taylor](https://forum.inductiveautomation.com/u/jonathan.taylor)\
**Post date:** [August 10, 2021, 8:35am UTC](https://forum.inductiveautomation.com/t/vision-client-tag-value/49743/2 "2021-08-10T08:35:51Z")

</div>

You need to use the tag read function to get the value of tags - you can’t just use the path as you have done.

```auto
val = system.tag.readBlocking(["[client]SlidescreenLeftVisible"])[0].value
if val == 1:
	#do things

```

You have also not indented the if block correctly - indentations need to be tabs, not just one space.

I would recommend the Inductive University videos on scripting to learn more.
