# Finding if a tag is a DB or OPC

**URL:** <https://forum.inductiveautomation.com/t/finding-if-a-tag-is-a-db-or-opc/4230>\
**Category:** Ignition\
**Created:** [March 30, 2012, 8:39pm UTC](https://forum.inductiveautomation.com/t/finding-if-a-tag-is-a-db-or-opc/4230 "2012-03-30T20:39:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daleyc](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@daleyc](https://forum.inductiveautomation.com/u/daleyc)\
**Post date:** [March 30, 2012, 8:39pm UTC](https://forum.inductiveautomation.com/t/finding-if-a-tag-is-a-db-or-opc/4230/1 "2012-03-30T20:39:52Z")

</div>

I have a project that I have directories with the line #'s and the tags underneath are all the same so i can do indirect tags. Some lines have a plc to read the data with opc and other lines that I must enter in manually. Is there a way to tell if the tag is a DB tag or a OPC tag in a Expression?

---

<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:** [March 30, 2012, 8:42pm UTC](https://forum.inductiveautomation.com/t/finding-if-a-tag-is-a-db-or-opc/4230/2 "2012-03-30T20:42:23Z")

</div>

No, when you are in an expression you can’t tell the difference between an OPC, memory or expression tag because they are all just paths at that point. I generally name my tags in such a way where I can tell the difference.
