Check if tag is UDT

If given just a tag path in a script, [Something]MyTag, what is the best way to check if this is a UDT instance?

1 Like

system.tag.getConfiguration
image

Thanks, was curious if there was a more “direct” way,

You could probably read tagPath.typeId; if it’s null then it’s not an instance.

2 Likes

I think I'm missing something obvious here. How exactly do I use tagPath.typeId? Do I use that in conjunction with system.tag.getConfiguration?

Literally just system.tag.readBlocking(["path/to/myTag.typeId"]).

1 Like

Thank you!