Hi All
Trying to create an arcade expression to populate a field, i am wanting to construct features using two arrays, is it possible to loop through multiple arrays in parallel (they are the same length), i know i can do this in python by using "for x,y in zip(x_list, y_list):"
DormArray = [FP1Dorm,FP2Dorm,FP3Dorm,ConDorm,MedDorm,BlisDorm]
DormWeightArray = [FP1DormWeight,FP2DormWeight,FP3DormWeight,ConDormWeight,MedDormWeight,BlisDormWeight]
var summarydict = {
fields:[
{'name':'Dormancy','type':'esriFieldTypeString'},
{'name':'DormancyWeight','type':'esriFieldTypeDouble'}],
'geometryType': '',
'features':[]
}
for (var d in DormArray and var w in DormWeightArray){
var new_f = {'attributes': {'Dormancy': d,
'DormancyWeight':w
}}
Push(summarydict.features, new_f)