How to write nested while looping in mule dataweave
I have code like this,
(UnitMeasureVal:"EACH") when ($.@attribute-id) == "UnitMeasure"
and ($ is :empty or ($ =="N/A" or $ =="NA")) otherwise (UnitMeasureVal: $),
But its giving error, I am not able to add otherwise condition in this. I want to assign $ value in otherwise section