Hi,
I am trying to transfer some code I use in python to arcade in order to take advantage of the attribute rule calculation. I currently have some python that calculates the average of an array but discounts null values if it finds them in the array. I'm looking to use arcade to count how many nulls or non-nulls there are... the Count function or the isEmpty function don't seem suited.
The last best code which isn't working (so best isn't great!) is:
var array = [$feature.Welcoming,$feature.Access];
var count = [i for i in array if i];
'Sum(array) / float(count)'
Any help would be great thanks!