Page 1 of 1

Import local variables into python / JS

Posted: Wed Mar 16, 2022 11:38 am
by DK.Ideagen
How does one work with local variables in an internal python/js script.

In my own tests it leads to a syntax error.

One workaround was passing them as a prefix e.g.

rt.start_task("PREFIXVAR", "PREFIX="+str(row))

How would you do it?

Re: Import local variables into python / JS

Posted: Wed Mar 16, 2022 1:57 pm
by Oleg
start_task(ext_name, params = '')
Method.
Start task by number or External Name.
Parameters
  • ext_name - task number or external name
  • params - parameters of the task to be launched. Empty string by default. Parameters can be set as text, one parameter per line :
    parameter_name=parameter_value
External name is alternative ID of the task. You can set it in "Advanced" tab of task editor

Read more here about RoboTask object for python