# Passing Multiple Parameters Using runScript

**URL:** <https://forum.inductiveautomation.com/t/passing-multiple-parameters-using-runscript/14131>\
**Category:** Ignition\
**Created:** [April 25, 2017, 12:29am UTC](https://forum.inductiveautomation.com/t/passing-multiple-parameters-using-runscript/14131 "2017-04-25T00:29:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bmahanna](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@Bmahanna](https://forum.inductiveautomation.com/u/Bmahanna)\
**Post date:** [April 25, 2017, 12:29am UTC](https://forum.inductiveautomation.com/t/passing-multiple-parameters-using-runscript/14131/1 "2017-04-25T00:29:24Z")

</div>

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/836527e7668016459e5199527cc8b57ee5bd8f2a.png)

This is my shared script.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/81dd7518f42412c7043ff97f7664f984d851a14a.png)

This is my expression.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/60a05c2622a34fca47443ff082502130a1c5f7ea.png)

This is the Error message.

I have tried different iterations for passing the variables, but none have seemed to work.  
I’ve tried  
runScript(“shared.Fault.linesection(”{Conveyor Dev.LineName}","{Conveyor Dev.SectionName}")", 10000), gives me Syntax Error on Token: ‘BOUND CONST’(Line 1, Char 60)  
runScript(“shared.Fault.linesection(”+{Conveyor Dev.LineName}+","+{Conveyor Dev.SectionName}+")", 10000), same error  
and so on.

If someone can see where I have went wrong, constructive criticism is welcome

---

<div class="post-metadata">

**Author:** ![Bmahanna](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@Bmahanna](https://forum.inductiveautomation.com/u/Bmahanna)\
**Post date:** [April 25, 2017, 12:46am UTC](https://forum.inductiveautomation.com/t/passing-multiple-parameters-using-runscript/14131/2 "2017-04-25T00:46:13Z")

</div>

It seems to have passed my variables in this format:  
runScript(“shared.Fault.linesection”, 10000, {Conveyor Dev.LineName},{Conveyor Dev.SectionName})  
now I’m just stuck on a secondary problem.

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [April 25, 2017, 1:24pm UTC](https://forum.inductiveautomation.com/t/passing-multiple-parameters-using-runscript/14131/3 "2017-04-25T13:24:56Z")

</div>

Whats the secondary problem?

---

<div class="post-metadata">

**Author:** ![Bmahanna](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@Bmahanna](https://forum.inductiveautomation.com/u/Bmahanna)\
**Post date:** [April 25, 2017, 5:47pm UTC](https://forum.inductiveautomation.com/t/passing-multiple-parameters-using-runscript/14131/4 "2017-04-25T17:47:38Z")

</div>

That script and expression seem to work, I’m having a problem calling a second global script in a different expression, but I believe there is just an error in my script. I’m looking into it now.
