New Script Functions for Maps

Forum to discuss everything related to the current development build of Automagic.

Moderator: Martin

Locked
98b427af

New Script Functions for Maps

Post by 98b427af » 29 Apr 2014 14:17

Thanks for those, they're exactly what I was talking about in my related Feature Request posts.

There is one thing missing:

Code: Select all

string dataType(string variableName)
If a flow is processing variables it knows nothing about (and I have some which do that), trying to use the new map functions on non-map variables causes exceptions to be thrown. To avoid having exception-catchers all over the flow, a script should be able to test for a variable's type before processing it.

I've uploaded a flow to illustrate: http://automagic4android.com/flow.php?i ... 39ea353c9b

P.S. I use the name "dataType" as an example. The name of the function could be anything appropriate, of course.

98b427af

Re: New Script Functions for Maps

Post by 98b427af » 29 Apr 2014 14:19

By the way, AM clealy knows that a variable is or is not a map in order to throw the exception and it displays knowledge of variable types in other situations. So I'm hoping it's not a lot of work to make that info available via a function.

Thanks!

Locked