Question: stop_cond question

I am using dsolve to integrate a system of equations, and I am using stop_cond to stop the integration when certain conditions are met.

The problem is, I want the integration to stop when condition 1 AND condition 2 are met, but when I use, for example

stop_cond=[y(t)-2,t-4]

it stops as soon as ONE of these conditions are met, not both. I want it to stop when y(t) is equal to 2 AFTER t=4, not before.

Any suggestions would be greatly appreciated!

 

Please Wait...