I would like to be able to control a spigot based on whether or not there is a connection to an inlet. Basically, for a given inlet, I'd like to be able to turn off all other inputs if a connection is made to it, and open that back up when the connection is deleted.
This seems easy enough to do if I use lists to flag where connections are coming from and check for that "type" flag at the point of input, but the issue is when I get rid of that connection, there's no way to tell pd to switch back to accepting other inputs.
Does this make any sense? If there was an object that put out a 1 or 0 depending on if anything was connected to its inlet, I'd be all happy.