I tried using "for" loops to iterate through the days string, but that will not even display any of the days or none will display correctly.
Interestingly, if I reverse the order of the "if" statements, like this: if (days.search("U")!=-1){ sun.addChild(item); } if (days.search("S")!=-1){ sat.addChild(item); } if (days.search("F")!=-1){ fri.addChild(item); } if (days.search("R")!=-1){ thurs.addChild(item); } if (days.search("W")!=-1){ wed.addChild(item); } if (days.search("T")!=-1){ tues.addChild(item); } if (days.search("M")!=-1){ mon.addChild(item); } then I get the opposite problem and only the first day in the string is displayed and the last ones are ignored. If there is only one day in the string, then it displays fine. Help!