I think I need to add a line to the prompt that is something like "don't use any keywords as variable names" b/c it does things like var distance = Distance($feature, test); and you can't do that in arcade, distance is a reserved word, but the error is lame, it says something like "not callable" and the line number.
In a similar way, arcade does not have a ternary expression, so I should add a line like "only use supported expressions in arcade" and "do not use any ternary expressions"
I think I need to add a line to the prompt that is something like "don't use any keywords as variable names" b/c it does things like
var distance = Distance($feature, test);and you can't do that in arcade,distanceis a reserved word, but the error is lame, it says something like "not callable" and the line number.In a similar way, arcade does not have a ternary expression, so I should add a line like "only use supported expressions in arcade" and "do not use any ternary expressions"