I want to leave the for each loop as soon as the boolean is set to true.
for each (xmlEvent in arEvents)
{
var xmlEvent:XMLList = XMLList(event);
if(xmlEvent.id == artistEvent.id)
{
boolExists = true;
}
}
I’ve tried break and such, but this all doesn’t work.
Use break operator