I am looking for an Arcade Expression for ArcGIS Online which does the following:
If the value from field A is 222,333 or 444 OR
If the value from field B is 222,333 or 444 OR
If the value from field C is 222,333 or 444
return "Problem detected"
else return "Everything fine"
I have just found a solution for one field, but it does not take care of Field B or field C:
if ( $feature.FieldA == 111) {
return "everything fine"
}
else if ( $feature.FieldA == 222) {
return "Problem detected"
}
else if ( $feature.FieldA == 333) {
return "Problem detected"
}
else if ( $feature.FieldA == 444) {
return "Problem detected"
}
else {
return "No Values"
}
Is this even possible in Arcade?