When I hard code in an array...
var array <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="string token">"2"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"2"</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
... 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
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN></SPAN>
Is there a way to call a string from a field and have the expression read it as a array?
Xander Bakker