I've been googling around a bit as I would like to break a loop with two different conditions. Haven't found anything useful so I will try here. I'm not after a complete solution, just a general approach.
At the moment I loop through the array with something like
for (var i=0;i<length;i++) ... if (this || that)...break ...msg
but when the break is triggered I don't which condition it was that caused it. So I tried to do something like
for (var i=0;i<length;i++) ... if (this)...break ...msg1... else if (that) ... break...msg2
but that didn't feel right and I don't know if it's even possible to do it like that. I thought I could do the first condition loop in one function node and then deal with the other condition in a second node that loops the messages that go through the first one with out triggering a break, but I'm thinking there has to be a better way. Any suggestions?