choose different message box with each bang?

Noah's icon

Total beginner question...
How can I get this patch

Max Patch
Copy patch and select New From Clipboard in Max.

to select consecutively, or randomly, between different message boxes, with each bang?

Evan's icon

Oh you want to select something? Try the [select] object!

Max Patch
Copy patch and select New From Clipboard in Max.

And some gates. Or you could use a switch. Welcome to Max!

Noah's icon

Evan,
thank you very much for your help and swift response.
are the two different toggles basically two different options for workability?
also, I don't understand the subtraction object / "!-" does in this patch.
Very curious, if you have the time to answer again.

A more solid solution with more utility than the one I came up with...

Max Patch
Copy patch and select New From Clipboard in Max.

Thank you again

Noah's icon

Thank you for this Rabid
an even smaller patch!
This patch helps the "coll" object to make more sense.
I did not know about the "@active 1" as a means of automatically initiating the "metro" object

Evan's icon

Raja, always being succinct. It's good practice to hide all those messy conditional things in a coll or javascript, or something similar.

I only added one toggle from the initial patch you provided, to choose between random and sequential. The !- object simply inverts the toggle value, opening one gate when the other is closed and vice versa.

Noah's icon

Evan, I see this clarifies your patch in terms of the !- object and its general use.
Interesting to look at the difference between succinct in form and transparent in operation.
Thank you again for all of your help. I hope to be able to help someone else as much as you two have helped me.