# Navigation event with Tab Container

**URL:** <https://forum.inductiveautomation.com/t/navigation-event-with-tab-container/110331>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 2, 2025, 2:02pm UTC](https://forum.inductiveautomation.com/t/navigation-event-with-tab-container/110331 "2025-09-02T14:02:04Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ryan.perretta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.perretta/32/75110_2.png) [@ryan.perretta](https://forum.inductiveautomation.com/u/ryan.perretta)\
**Post date:** [September 2, 2025, 6:51pm UTC](https://forum.inductiveautomation.com/t/navigation-event-with-tab-container/110331/6 "2025-09-02T18:51:07Z")

</div>

First, before anyone beats me to it, any time you are posting code in the forums follow this guide [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831) so it will format nicely and be more readable.

As per your script, the one thing I can see is incorrect is the way you are using `currentValue`. If you look at the parameter definitions on top the `currentValue` and `previousValue` are QualifiedValues which means they can’t be used like an integer for comparison.

What you’d have to do in this case is extract the raw value using `currentValue.value` to compare. This will come up more throughout your experience with Ignition, so I’d recommend familiarizing yourself with the concept ([Scripting Object Reference: QualifiedValue](https://www.docs.inductiveautomation.com/docs/8.1/appendix/reference-pages/scripting-object-reference#qualifiedvalue)).

---

_[View the full topic](https://forum.inductiveautomation.com/t/navigation-event-with-tab-container/110331)._
