How do I stop an Animation when certan conditions are met?

kyrGs shared this question 8 months ago
Needs Answer

I want to stop automatically an animation when two points are met. How I can do it? I tried StartAnimation(E,(if(condition)),FALSE,TRUE) but doesn't work. And also where I set the condition as a script? In the Point or in the Start Button? Any help please?

© 2020 International GeoGebra Institute