aisingapore / TagUI

Free RPA tool by AI Singapore
Apache License 2.0
5.67k stars 585 forks source link

How to create something like function which takes parameters and does some work inside? #723

Closed vrudhay closed 4 years ago

vrudhay commented 4 years ago

How to create something like function which takes parameters and does some work inside?

siowyisheng commented 4 years ago
// define the function in javascript
js begin
var myFunction = function(param1, param2) {
  some work in javascript
}
js end

// call the function
js myFunction(param1, param2)
vrudhay commented 4 years ago

Hi, Actually, I am not looking for javascript statements rather tagUi statements itself to be bundled in a function / module and reuse it with various arguments?

siowyisheng commented 4 years ago

The closest TagUI way is to group statements together in a flow file, and then calling that flow within another flow.

tagui another_flow