Define an User Function

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
husky
Posts: 132
Joined: 29 Oct 2016 13:41
Location: Omaha, Nebraska, USA
Contact:

Define an User Function

Post by husky » 11 Feb 2017 00:19

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
"Basic research is what I'm doing when I don't know what I'm doing"

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: Define an User Function

Post by bogdyro » 11 Feb 2017 09:49

Automagic doesn't offer this feature. Has been requested before though

User avatar
husky
Posts: 132
Joined: 29 Oct 2016 13:41
Location: Omaha, Nebraska, USA
Contact:

Re: Define an User Function

Post by husky » 11 Feb 2017 15:21

bogdyro,

Thanks for the reply.

Perhaps in the future something might be done about it.


Regards

Husky
"Basic research is what I'm doing when I don't know what I'm doing"

User avatar
fagci
Posts: 80
Joined: 03 Feb 2017 13:06
Location: Novosibirsk, RU
Contact:

Re: Define an User Function

Post by fagci » 13 Feb 2017 09:29

So, what about separate flow? It has own context, which includes parent context with local variables.
All systems nominal.

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: Define an User Function

Post by bogdyro » 14 Feb 2017 10:31

Yes,but if you want it in a script you have to separate it and run another script action afterwards.not really convenient

Post Reply