You cannot compare a string to a boolean value or assign a boolean to a string:
String str =(row4.external.toString() == "True") ? "True" : row4.external.toString();
if(str == "True" {
String[] strArray = str.split(",");
}
although a less complex way would be:
String[] strArray;
if (row4.external.toString() == "True")
{
strArray = str.split(",");
}
else {
strArray = new String[1];
strArray[0] = row4.external.toString();
}