Break statement not breaking, where to look for info?
After a long break, I've once again found myself writing max scripts. I've more or less finished my script, except for this one weird thing.
I have two nested loops, for-i and for-j. I want to break out of for-j when a specific condition is met, iterate through the rest of for-i, and then have the loop continue at i+1 as normal.
Should be simple, right?
However, it seems the BREAK statement doesn't work!
for j = value to bones_total_nr do ( if (another_value == 0) do ( print("found a zero"); break; print("it didn't break"); ) )
This prints out:
"found a zero" "it didn't break"
Break should break out of the for-j loop, but it doesn't. Am I misunderstanding something? Where could I find more information about this?
Thanks for your time