Hello,
I have a bit of a conundrum.
I have a simple arcade script that returns a calculation based on a value. When I entered "ABT", the script makes the correct calculation, but when I enter "Park" or "Street", the script returns "750"
Any reason why the else if function wouldnt work?
Here is the script
var SpacTypeClass = $feature.SpactypeCLASS;
var API = ($feature.Appraised_Trunk_Increase)
if (SpacTypeClass == 'ABT') {
return ((API * 6.51) + 5000);
} else if (SpacTypeClass == 'Street') {
return ((API * 6.51) + 750);
} else if (SpacTypeClass == 'Park') {
return ((API * 6.51) + 750);
}
Thanks,
Justin