# Scripting Module - browseTags()

**URL:** <https://forum.inductiveautomation.com/t/scripting-module-browsetags/5731>\
**Category:** 3rd Party Modules\
**Created:** [January 23, 2013, 7:53pm UTC](https://forum.inductiveautomation.com/t/scripting-module-browsetags/5731 "2013-01-23T19:53:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [January 23, 2013, 7:53pm UTC](https://forum.inductiveautomation.com/t/scripting-module-browsetags/5731/1 "2013-01-23T19:53:41Z")

</div>

So I’ve browsed for and gotten a bunch of tags. Now I’m looking for a type of tag, say boolean for example.

tag.dataType() doesn’t work  
getAttribute(path,“dataType”) doesn’t work

is there something that does?

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 23, 2013, 7:57pm UTC](https://forum.inductiveautomation.com/t/scripting-module-browsetags/5731/2 "2013-01-23T19:57:55Z")

</div>

You can call getAttribute(tagPath, “DataType”). Case matters.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [January 23, 2013, 8:17pm UTC](https://forum.inductiveautomation.com/t/scripting-module-browsetags/5731/3 "2013-01-23T20:17:57Z")

</div>

Thanks Travis. Is not in the list of attributes and every other reference I could find showed it as dataType.

How do I compare it?

```auto
system.tag.getAttribute(tag.fullPath, "DataType") != "Boolean"
```

is always true

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 23, 2013, 9:59pm UTC](https://forum.inductiveautomation.com/t/scripting-module-browsetags/5731/4 "2013-01-23T21:59:23Z")

</div>

You can do this:`str(system.tag.getAttribute(tag.fullPath, "DataType")) == "Boolean"`You have to cast it to a string.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [January 23, 2013, 10:20pm UTC](https://forum.inductiveautomation.com/t/scripting-module-browsetags/5731/5 "2013-01-23T22:20:55Z")

</div>

OK.

But that’s slow. Is there more stuff that comes back from browseTags() then just

`
tag.name, tag.path, tag.fullPath, tag.isFolder(), tag.isUDT(), tag.isOPC(), tag.isDB(), tag.type`

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 23, 2013, 10:47pm UTC](https://forum.inductiveautomation.com/t/scripting-module-browsetags/5731/6 "2013-01-23T22:47:27Z")

</div>

No, but I can put in a request to get that added.
