# Tag change scripts can't execute new command

**URL:** <https://forum.inductiveautomation.com/t/tag-change-scripts-cant-execute-new-command/36983>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [July 23, 2020, 7:28am UTC](https://forum.inductiveautomation.com/t/tag-change-scripts-cant-execute-new-command/36983 "2020-07-23T07:28:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![netliuhao](https://avatars.discourse-cdn.com/v4/letter/n/8baadc/32.png) [@netliuhao](https://forum.inductiveautomation.com/u/netliuhao)\
**Post date:** [July 23, 2020, 7:28am UTC](https://forum.inductiveautomation.com/t/tag-change-scripts-cant-execute-new-command/36983/1 "2020-07-23T07:28:25Z")

</div>

**my colleague write below , it running well**  
tag = system.tag.read(“EndofLineDataDisplay/MDE/DisplaySelect”).value  
if tag == 0:  
window = system.nav.openWindow(‘Main Window’)  
system.nav.closeParentWindow(event)  
if tag == 1:  
window = system.nav.openWindow(‘MDE’)  
system.nav.closeParentWindow(event)

 ![新增加的语句](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/c/2c0f36a970f2c19eeb271342373baa689da61d2d.png)  
\*\*\ ***I am copy my colleague command and paste it .see below .but it can’t show the widows when tag==2**  
if tag == 2:  
window = system.nav.openWindow(‘Docked Windows/FP Banner’)  
system.nav.closeParentWindow(event)

I had restart the TV screen. and save it and publish it. I don’t know where is wrong?
