Quality code in script

how do you check the current quality code in a FactorySQL script? i want to do something like the following

if({quality_code}=192
     ,do this
     ,do that
)

thank you,

Using the super-secret syntax:

toInt({Tag.DataIntegrity})

Shouldn’t be a secret, but alas.

Regards,

thanks, but i receive this when i try it.


Sorry, I wasn’t clear. It’s not literally “Tag”, but whatever the tag is that you want to reference. In other words, create a reference to a tag as you normally would, like:
{MySuperValue}

and this add “.DataIntegrity” to the path:
{MySuperValue.DataIntegrity}

Regards,