# Having a condition then perform runscript

**URL:** <https://forum.inductiveautomation.com/t/having-a-condition-then-perform-runscript/17163>\
**Category:** Ignition\
**Created:** [February 28, 2018, 12:01am UTC](https://forum.inductiveautomation.com/t/having-a-condition-then-perform-runscript/17163 "2018-02-28T00:01:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mel](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Mel](https://forum.inductiveautomation.com/u/Mel)\
**Post date:** [February 28, 2018, 12:01am UTC](https://forum.inductiveautomation.com/t/having-a-condition-then-perform-runscript/17163/1 "2018-02-28T00:01:49Z")

</div>

I am trying to create an if condition before the runscript will be execute. On my case I have two(2) tables and my aim is if there something changed on table 1 or something like property change event then my table 2 will now perform the expression binding. I know it is simple thing if I do it in scripting but in this case I want to try if this would be possible also by using this multiple expression binding feature.

I am trying to do something like this:

if(table1 is changed, runScript(shared.util.executeSomeScript,0), doNothing)

Any advice or suggestions thanks in advance!

---

<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:** [February 28, 2018, 2:57am UTC](https://forum.inductiveautomation.com/t/having-a-condition-then-perform-runscript/17163/2 "2018-02-28T02:57:45Z")

</div>

You’ll have to do it in the script called by runScript. In the binding system, anything that changes that causes re-evaluation will re-evaluate the entire expression.
