hello everyone,
I'm trying to use getConfiguration to read out whether a Tag is part of a UDT or not.
unfortunately the query always brings me true, even though 'tagType' is different.
It should work after casting the type.
str(config[0]["tagType"])
Debugging the type, returns its not a string.
type(config[0]["tagType"])
result >
<type 'com.inductiveautomation.ignition.common.tags.config.types.TagObjectType'>
Alternate method you can use without casting
config[0]["tagType"].equals(config[0]["tagType"].valueOf("UdtInstance"))
You are not converting the type of variable. Its not a string type.
Use the bold method I highlighted above.
Thank you very much. Now it is working Sorry I didn't recognized your string conversion