Hello.
There is a need to use a large piece of code several times.
Is it possible to write a function and call it as needed?
I will give an example from java.
//Function Description
function sum(a, b) {
sum = a + b;*
console.log(sum);*
}
//Function call
sum(a, b);
Necessary:
pass value to function
Process value
return result
1 Like
Hey @Andrey_VIctorov
You can create a new project file → Click new and choose Sequence or Flowchart
Once the above is created you can create Arguments through which data can be passed
The workflow which you created now can be drag dropped into any other program files to call that as a function or use Invoke Workflow activity
Post that you can click on Import Args to send some data into file or get data out from it
Thanks
#nK
1 Like
ppr
(Peter Preuss)
May 4, 2022, 10:35am
3
on the viewpoint of reusability we do have following options:
1 Like
Yoichi
(Yoichi)
May 4, 2022, 10:35am
4
Hi,
We can achieve it using Func type as the following.
Regards,
1 Like
hi… can you help me what wrong for my variable
Yoichi
(Yoichi)
February 27, 2023, 8:44am
6
HI,
Can you try to set as the following.
Function(dt,b) "my result"
note: we cannot use True as definition of function.
Regards,
1 Like
omg, i just release it thankyou sir
2 Likes