# Add indirect tag into expression

**URL:** <https://forum.inductiveautomation.com/t/add-indirect-tag-into-expression/34999>\
**Category:** Ignition\
**Created:** [May 24, 2020, 11:57am UTC](https://forum.inductiveautomation.com/t/add-indirect-tag-into-expression/34999 "2020-05-24T11:57:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [May 24, 2020, 11:57am UTC](https://forum.inductiveautomation.com/t/add-indirect-tag-into-expression/34999/1 "2020-05-24T11:57:16Z")

</div>

Is there a way to use an indirect tag into an expression?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 24, 2020, 12:41pm UTC](https://forum.inductiveautomation.com/t/add-indirect-tag-into-expression/34999/2 "2020-05-24T12:41:43Z")

</div>

You can use the `tag()` function, if that’s what you’re looking for?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 24, 2020, 1:59pm UTC](https://forum.inductiveautomation.com/t/add-indirect-tag-into-expression/34999/4 "2020-05-24T13:59:01Z")

</div>

Let me echo:

> [@nminchin](#):
>
> You can use the `tag()` function, if that’s what you’re looking for?

---

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [May 25, 2020, 6:00pm UTC](https://forum.inductiveautomation.com/t/add-indirect-tag-into-expression/34999/5 "2020-05-25T18:00:14Z")

</div>

What I want is to be able to use an indirect tag in the expression of a derived tag.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [May 25, 2020, 6:25pm UTC](https://forum.inductiveautomation.com/t/add-indirect-tag-into-expression/34999/6 "2020-05-25T18:25:53Z")

</div>

Let me echo:

> [@pturmel](#):
>
> Let me echo:
> 
> > [@nminchin](#):
> >
> > You can use the `tag()` function, if that’s what you’re looking for?

---

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [May 25, 2020, 6:29pm UTC](https://forum.inductiveautomation.com/t/add-indirect-tag-into-expression/34999/7 "2020-05-25T18:29:45Z")

</div>

I search how to use an INDIRECT TAG into the tag() function included in an expression

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 25, 2020, 9:44pm UTC](https://forum.inductiveautomation.com/t/add-indirect-tag-into-expression/34999/8 "2020-05-25T21:44:33Z")

</div>

The tag function simply accepts a text string of the tag path. You can construct the tag path that you pass into it in whatever way you choose, including with an expression to make up the tag path from other variables, thus making it indirect.

What are you actually trying to do? Where are you trying to write this expression? How are you trying to make up your tag path? Screenshots might help

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 26, 2020, 12:17pm UTC](https://forum.inductiveautomation.com/t/add-indirect-tag-into-expression/34999/9 "2020-05-26T12:17:01Z")

</div>

The [tag() expression function](https://docs.inductiveautomation.com/display/DOC80/tag) is how you do indirect tags within expression tags & derived tags. **Go read the documentation.**

---

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [May 26, 2020, 12:21pm UTC](https://forum.inductiveautomation.com/t/add-indirect-tag-into-expression/34999/10 "2020-05-26T12:21:29Z")

</div>

Thanks, I was thinking that tag function was the tag link in the expression module.
