NEWBIE TO ARCADE!!!
I am in AGOL trying to configure an expression for a calculated field (Hcalc). Currently the expression is:
return ($feature.ItemA / $feature.ItemB) * 200
which simply calculates based on the tech's input. I'd like to have the font color change to red, if the result is over 10, which will prompt the tech to re-run the test. If the result is under 10, the font color remains black.
so the IIf statement in arcade shows this:
IIf(conditionalExpression, valueIfTrue, valueIfFalse)
my expression should be something like this?
var Hcalc = (($feature.ItemA / $feature.ItemB) * 200)
IIf (Hcalc > 10, <font.color> = "red", <font.color> = "black")
Any help is appreciated.
Thanks in advance!