AnsweredAssumed Answered

Create an array out of a string using Arcade?

Question asked by TLongSUGF on Aug 10, 2020
Latest reply on Aug 10, 2020 by xander_bakker

When I hard code in an array...

 

var array = ["2", "2"]

... right into the expression, it works.  

 

However, when I add that same array into a field, then call that field instead within the function, it doesn't see it as an array.  

$feature.array = ["2", "2"]

var array = $feature.array

Is there a way to call a string from a field and have the expression read it as a array?

Xander Bakker

Outcomes