I have multiple boolean fields in (1,0) and if they have a 1 they should have a score associated. I have many of these and don't want to write if statements for every single one. How can I string them all together?
I tried:
When($feature.Cracks == 1,$feature.Sc_Cracks,
$feature.Branch_Unions == 1,$feature.Sc_Branch_Unions,
$feature.StemBranch_Decay == 1, $feature.Sc_StemBranch_D,
$feature.Fungal_Bodies == 1,$feature.Sc_Fungal_Bodies,
$feature.Cankers == 1,$feature.Sc_Cankers,
$feature.DeadTree_Top_Branch == 1,$feature.Sc_DeadTopBrch,
$feature.Beetles == 1,$feature.Sc_Beetles,
$feature.Root_Damage == 1,$feature.Sc_Root_Damage,
$feature.Architecture == 1,$feature.Sc_Architecture,'')
But it would only return one value, not all of them (if there were more than one.) I don't think it likes the multiple fields.
Help pleasseeeee!