# Tag expression in Switch Block doesn't work

**URL:** <https://forum.inductiveautomation.com/t/tag-expression-in-switch-block-doesnt-work/15986>\
**Category:** Ignition\
**Created:** [November 13, 2017, 10:55pm UTC](https://forum.inductiveautomation.com/t/tag-expression-in-switch-block-doesnt-work/15986 "2017-11-13T22:55:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjgonzales](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pjgonzales](https://forum.inductiveautomation.com/u/pjgonzales)\
**Post date:** [November 13, 2017, 10:55pm UTC](https://forum.inductiveautomation.com/t/tag-expression-in-switch-block-doesnt-work/15986/1 "2017-11-13T22:55:20Z")

</div>

I know I’m just overlooking something, but in my alarm pipeline I have a Switch block with at ag expression:

tag(“tag path”)

pointing to a Integer tag. On the outputs of the Switch block I have the values 0 and 1 (just testing for now) both of which go to separate notification blocks. The Switch block does not seem to evaluate the tag expression. If I bypass the switch the notification block triggers, but when I put the switch block in play it does not evaluate. I have even tried using toInt and toInteger around the tag() but it still doesn’t work.

Any pointers or clues? Thanks.

---

<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:** [November 13, 2017, 11:00pm UTC](https://forum.inductiveautomation.com/t/tag-expression-in-switch-block-doesnt-work/15986/2 "2017-11-13T23:00:05Z")

</div>

What version are you using? There’s a bug with the tag() function in alarm pipelines that’s fixed in 7.9.5 (introduced in 7.9.2).

---

<div class="post-metadata">

**Author:** ![pjgonzales](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pjgonzales](https://forum.inductiveautomation.com/u/pjgonzales)\
**Post date:** [November 13, 2017, 11:02pm UTC](https://forum.inductiveautomation.com/t/tag-expression-in-switch-block-doesnt-work/15986/3 "2017-11-13T23:02:19Z")

</div>

Must have missed that part. Right now I’m testing on 7.9.3, but the functionality will be being used on machines that are much earlier versions (ie: 7.8.x).

Unless, what your saying, is that the Switch doesn’t exist in those versions. Honestly I haven’t bothered to check yet!
