Hello! My Arcade skills are not strong yet. I am trying to write an expression to symbolize on two criteria: 1) water meter sizes less than or equal to 1.0 inch having an installation date of up to 15 years old, and, 2) water meter sizes greater than or equal to 1.5 inches having an installation date of up to 10 years old. If I comment out all of the code after the first return: return "Small Meters installed up to 15 years ago" } the code runs and produces results. When I remove the comments and try to get the entire code to run, I get an Invalid Expression, Error on line 12, Reserved keyword used. I have tried multiple ideas, but no further progress. Any help would be greatly appreciated. Many thanks in advance.
//Meters less than or equal to 1.0 inches and installed less than or equal to 15 years ago
if ($feature.metersize_inches <= '1.0')
if (DateDiff(Now(), Date($feature.installdt), 'year') <= 15)
{
return "Small Meters installed up to 15 years ago" }
//Meters greater than or equal to 1.5 inches and installed less than or equal to 10 years ago
else if ($feature.metersize_inches >= '1.5')
else if (DateDiff(Now(), Date($feature.installdt), 'year') <= 10)
{
return "Large Meters installed up to 10 years ago" }
//Time since meter installation is none of these
else {
return "None of these" }