Page 1 of 1

Define an User Function

Posted: 11 Feb 2017 00:19
by husky
Hello,

Pardon my ignorance with such a question. I searched for an answer but couldn't find what I'm looking for or just plain missed it.

Question:
How do I define an user function in AutoMagic like the example below

Function AddAplusBReturnC(a, b, c){

c = a+b;

}

Thanks

Husky

Re: Define an User Function

Posted: 11 Feb 2017 09:49
by bogdyro
Automagic doesn't offer this feature. Has been requested before though

Re: Define an User Function

Posted: 11 Feb 2017 15:21
by husky
bogdyro,

Thanks for the reply.

Perhaps in the future something might be done about it.


Regards

Husky

Re: Define an User Function

Posted: 13 Feb 2017 09:29
by fagci
So, what about separate flow? It has own context, which includes parent context with local variables.

Re: Define an User Function

Posted: 14 Feb 2017 10:31
by bogdyro
Yes,but if you want it in a script you have to separate it and run another script action afterwards.not really convenient