system.tag.getConfiguration

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

Thanks for your Help.
I tried it, but it doesn't work with "tagType".

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 :slight_smile: Sorry I didn't recognized your string conversion