Page 1 of 1

New Script Functions for Maps

Posted: 29 Apr 2014 14:17
by 98b427af
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.

Re: New Script Functions for Maps

Posted: 29 Apr 2014 14:19
by 98b427af
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!