flow with 0 & 1 let pass 1 except if there is only 0

Jan 3, 2011 at 9:26pm

flow with 0 & 1 let pass 1 except if there is only 0

Hello,

simple problem but…

If I have a flow like this 0,0,0,1,0,0 -> I want just 1
If it’s like this 0,0,0,0,0 -> I want 0

How to do ? (gratte, gratte) :-)

Thx.

– Pasted Max Patch, click to expand. –
#54227
Jan 3, 2011 at 9:46pm

Do you want to keep all of the zeros in the “0,0,0,0,0″ list? Here is one (of many) ways to do something like this:

– Pasted Max Patch, click to expand. –
#195170
Jan 4, 2011 at 1:20am

Thx you. My question was not enough precise. I didn’t explain the context.
Here’s what I wanted to achieve :

– Pasted Max Patch, click to expand. –
#195171
Jan 4, 2011 at 7:54am

Hello fp,

i’m not sure to understand what you try to do ; something like that ?

– Pasted Max Patch, click to expand. –

HTH

#195172
Jan 4, 2011 at 8:36am

@vanille béchamel : yes but I need to know when a column is empty.

#195173
Jan 4, 2011 at 1:25pm

anyway, thx you very much to point me in th right direction.
here it is :

– Pasted Max Patch, click to expand. –
#195174
Jan 4, 2011 at 2:31pm

There’s an easier way to do that.

_
johan

– Pasted Max Patch, click to expand. –
#195175
Jan 4, 2011 at 4:57pm

Hello,

for fun ;-)

– Pasted Max Patch, click to expand. –
#195176

You must be logged in to reply to this topic.