Solved by ptrblck in post #2 
              
              
                The easiest way would be to apply the loop and manipulate the parameter using all conditions. 
It’s hard to tell if and how these operations might avoid the loop without seeing the condition, but you might be able to use e.g. a mask.