Import local variables into python / JS

Discuss RoboTask here
Post Reply
DK.Ideagen
Posts: 22
Joined: Wed Mar 09, 2022 10:33 pm

Import local variables into python / JS

Post 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?
Oleg
Site Admin
Posts: 3004
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Import local variables into python / JS

Post 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
Oleg Yershov
Post Reply