Avatar

Community Advisor

Hello Tejashri,

This is how your updated code will look like.

for each(var enumValue in enumElt.enumValue){

        if(enumValue.@label=='1'){

               var deliveryStatus='sent';

        }

        if(enumValue.@label=='2'){

              var deliveryStatus='failed';

        }

}

Thanks,

Manoj