alternative for sel object?

Thinksamuel's icon

I need to get a value against a series of values. When the value is true, a bang should be sent. With sel I can do that however, I have an outlet for every value. Is there another object with just 1 exit so I can avoid cluttering with wires?

vichug's icon
Max Patch
Copy patch and select New From Clipboard in Max.

if it's a range of number, there's [split]
otherwise, there is [regexp] ; but you will have trouble because it will match a number if it's part of a bigger number (it works per character, not per number)

Thinksamuel's icon

That will not do the trick, it is an illogical series of values. I guess I will have to deal with sel

Jesse's icon

Sounds like something js would do easily, but you have to write the script.

Rick's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Or expr

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Or [patcher] if patch cord clutter is your problem.

Charles Matthews's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Could do this with zl.sect, triggering a bang from the left outlet e.g.

vichug's icon

i'd say zl.sect wins :) just not forget a [button] or [b 1]

Florent Ghys's icon
Max Patch
Copy patch and select New From Clipboard in Max.

or just iter and ==