Navigation event with Tab Container

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 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).

2 Likes