How can I check if TAG is present


Can somebody tell me how to check if a specific TAG is present on a device?

I found this line of code in documentation:

let tag3 = declare("Tags.tag3", {value: 1})

But tag3 seems to be always an object, no matter if the tag is present or not. And I don’t know what’s inside the returned object. Can somebody explain how to check if a specific tag is present on CPE?


The tag is present if tag3.value !== undefined

Thank you!

I also figured out that I can check tag3.size