I have a gateway script that is triggered by two different tags, one boolean and one document tag.
When the document tag is empty {}, I want to skip the functions. But the value I'm being returned is the PyDocumentObjectAdapter.
I tried both:
if type(tagvalue) == 'com.inductiveautomation.ignition.common.script.adapters.PyDocumentObjectAdapter'
if type(tagvalue) == 'PyDocumentObjectAdapter'
Is it possible to check for the PyDocumentAdaptor by type?