Adding A Parameter As An Input Source

Modified on Wed, 9 Sep at 7:00 PM

The input parameter panel allows you to add parameters as a source for your script’s input. 



Once a parameter is added, you can reference it by using the assigned variable name. In our example above, to refer to parameter “Comm Status” at location “JTK”, you can use the variable name “input1“.


The variable name follows the following naming convention, “inputX” where “X” is the index of the parameter in the input parameters list.


Advanced input assignment

Besides using “inputX” as the variable name, you can use “input” function to create a variable name. This allows you to customize the time.


The “input” function takes two arguments – index of the parameter and time.


When you write “input1“, the script is interpreted as if you’re writing “input1 := input(1, now)” where “now” is a special variable to represent time. This gets the value of the parameter at the current time.


There are other special variables that can represent time. Please see syntax documentation for details.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article