The third line from the end contains only the word 'else'. This is typical syntax for the if control structure. In the example, if length(ind1)<length(ind3), the program executes
However, if length(ind1)<length(ind3) is not true, the program will try to execute:
and exit with an error, because the line ends with an 'a' character.