1){ // is not a heading firstName.text = theDataString.split(" ")[0]; lastName.text = theDataString.split(" ")[1]; lastName.visible = true; headerBG.includeInLayout = headerBG.visible = false; firstName.top = firstName.bottom = 20; lastName.top = lastName.bottom = 20; } else { // is a heading firstName.text = theDataString; lastName.visible = false; headerBG.includeInLayout = headerBG.visible = true; firstName.top = firstName.bottom = 5; lastName.top = lastName.bottom = 5; } } ]]>