Value Sub-properties

I’ve written a script that runs on the gateway that detects a change in a tag that I suspect is having sampling-related problems (very infrequently returns nulls instead of integer values). Ignition 7.6.4, BTW. Anyhoo, I want the tag change to trigger on [tag]Value.Quality but it seems to trigger on any attribute listed under Value – in this case [tag]Value.value, which is changing roughly once every 65-75 seconds. Any way to perform a comparison to see if just the .Quality attribute has changed? Thanks for any assistance.

I figured it out. I added a conditional test:

if (str(newValue.quality) != "Good") : ... takeNoPrisoners() ... else : ... takeSomePrisoners() ...
Duh!