Turning infinite repeat on/off

Hi! I have a prototype where I have a button that scales up and down on repeat as I drag it. When I drag up, it triggers some responses such as a change in size, color, etc. I’m trying to build it so that when I drag up, the repeating scale effect stops, but when I drag back down it starts up again. Any suggestions on the best way to do that? I tried adding conditions to the repeating scale effect, but couldn’t get it to solve my problem. Thank you in advance!