if statement checking if mouse being used

sophsky's icon

hello,
I'm fairly new to Max so I don't have much experience writing(patching) if statements. I'm using mouse estate and I'm trying to figure out how to switch between one function which uses the mouse and another function that doesn't. Whenever I move the mouse(not click) I'd like for the first function to work.

Any suggestions?
Thanks in advance

Floating Point's icon

use gate (or maybe switch):

mousestate--[+ 1]--[gate 2 1]