How can I disable widget animation if widget is at specific state?

Thanks for your reply. I connected an event to the animation variable and the stop animation node but for some reason wasn’t working for me. I found out an alternative way experimenting with functions.