I have a text field called PerVax1 that has percentages.
I want to create an expression that labels the features when the field has a percentage greater than 30%. Here's some things I've tried so far:
var percentage = $feature.PerVax1;
var prcnt = "30%";
IIf(percentage >= "30%"){
return percentage}
//resulted in error:
Invalid expression.
Error on line 4.
Semicolon or new line expected.
var precentage;
percentage = IIf($feature.PerVax1 >= "30%")
return percentage;
//resulted in error:
Invalid expression.
Error on line 2.
Wrong number of arguments