Hi,
I'm trying to write a program to take an input string, find a key word within the full string, and create a new column with just the abbreviation. The script should iterate over all the rows of a single column. My code throws an error and I believe it is the syntax of my loop but can't seem to figure out where the error is. Here is what I have:
For Each Row(
:prodFam = If(
Pat Match(:prodGroup, "aleutian"),
"ALEUTIAN",
Pat Match(:prodGroup, "ari"),
"ARI",
Pat Match(:prodGroup, "blue"),
"BLUE RIDGE",
and the loop continues. Any help is greatly appreciated, thanks!