Hi guys, I have the following problem, I have a “Do” loop, like
Do[ expression1; If[ "....." ,PutAppend[{...},"list"]],{100}]
In this case, it sees if the expression satisfies the condition inside the If, and if it does, it put it inside a list, if it does not, it just keeps going for another round, in this case, it does it 100 times. Now think that instead of that, when the loop find that a set of parameters satisfy the condition it goes to another “Do”, like
Do[ expresion2(depends on the result of the previous Do); If["......",PutAppend[{...},"list2"] ],{500}]
How can I do it in another way like,
Do[] (If it find a set of point satisfying the conditions move to another Do) -> Do[] ( here in this Do we put PutAppend and save the result if it satisfies the condition of this Do too)
The structure of the Do is like
Do[ Expression, {number of iterations}]
since there are two loops, we have two {number of iterations}, but my idea is just to have one.
Thank you.