I’ve been chasing this one for a while and haven’t been able to get it figured out. I’m looking to condition a value changed script on a tag event with the value, initial change, and quality and can’t figure out the proper syntax.
Here’s what I have right now:
if currentValue.value == 1 and initialChange == 0: # do stuff
What do I need to do to also condition based on data quality? I haven’t been able to successfully use
currentValue.quality == "Good"
currentValue.quality == 192
What’s the proper syntax?
Also, is there a good place to look up the members of a data type (for example, the “dataQuality” data type)?