# How to bind a tag dynamically

**URL:** <https://forum.inductiveautomation.com/t/how-to-bind-a-tag-dynamically/3153>\
**Category:** Ignition\
**Created:** [August 4, 2011, 2:21am UTC](https://forum.inductiveautomation.com/t/how-to-bind-a-tag-dynamically/3153 "2011-08-04T02:21:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![weng](https://avatars.discourse-cdn.com/v4/letter/w/bbce88/32.png) [@weng](https://forum.inductiveautomation.com/u/weng)\
**Post date:** [August 4, 2011, 2:21am UTC](https://forum.inductiveautomation.com/t/how-to-bind-a-tag-dynamically/3153/1 "2011-08-04T02:21:30Z")

</div>

I want to bind a tag to a numeric text field dynamically,for example,bind a tag {_mine_/ne\_pa1-6/ne\_pa1} ,and from some condition ,bind tag{_mine_/ne\_pa1-6/ne\_pa2}

Thank you

---

<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:** [August 4, 2011, 3:25pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-a-tag-dynamically/3153/2 "2011-08-04T15:25:59Z")

</div>

You can use the expression binding to accomplish that. Just bind the numeric text field to the following expression:`if(something = value, {_mine_/ne_pa1-6/ne_pa1}, {_mine_/ne_pa1-6/ne_pa2})`You just have to replace the something = value with an expression that returns the first tag if true and the second if false. Hope this helps.
