Hello,
Is there a way to split more than a word using Arcade expression?
I am trying to use string-slicing, however, the result is null.
I want to extract all strings from the Assessment Roll Field after Spring.
FYI I am using ArcGIS Pro Calculate Field function
Solved! Go to Solution.
You can split the phrase with the text "Spring " (with the space after). This also has a check if the string didn't contain the word "Spring "
var theArray = Split($feature.Asmt_Roll, "Spring ");
iif (Count(theArray) > 1, theArray[1], "NA");
You can split the phrase with the text "Spring " (with the space after). This also has a check if the string didn't contain the word "Spring "
var theArray = Split($feature.Asmt_Roll, "Spring ");
iif (Count(theArray) > 1, theArray[1], "NA");