But if you're getting one value at a time from Array queue, then it get's tricky
Indeed, that's the problem.
EDIT: actually, when Array value is 0 you can trigger (by same '=' module) Data Selector from input 1 to input 0 or 2 where there's no value present. So that way 0 will get nowhere and properly replaced by value after it (if it's not 0).
Sounds like a good idea.I'll check this out, thanks!
But if you're getting one value at a time from Array queue, then it get's tricky, because even if you wire it to Stop flow and activate that by '=' module that compares value to 0, as soon as value isn't 0, I think that 0 will get through after being held by Stop flow. At least I think I've dealt with such problem before and usually I just changed my approach so I don't have to do such thing.
EDIT: actually, when Array value is 0 you can trigger (by same '=' module) Data Selector from input 1 to input 0 or 2 where there's no value present. So that way 0 will get nowhere and properly replaced by value after it (if it's not 0).
]]>2018-12-27T18:35:54+02:002018-12-27T18:35:54+02:00https://brainmodular.com/forums/viewtopic.php?t=6365&p=40630#p40630 I am trying to figure out how to filter out zeros from an ever-changing array-queue stream.
There might be two approaches to this:
1) To filter out zeros. But I didn't find a data range filter.
2) To only pass flow if x NOT 0. But it seems I am too dumb today, somehow I can't figure out how to do that either.
]]>BrainModularBrainModular Users Forum2018-12-27T23:23:45+02:00https://brainmodular.com/forums/app.php/feed/topic/63652018-12-27T23:23:45+02:002018-12-27T23:23:45+02:00https://brainmodular.com/forums/viewtopic.php?t=6365&p=40636#p40636Statistics: Posted by 23fx23 — 27 Dec 2018, 22:23
]]>2018-12-27T20:03:09+02:002018-12-27T20:03:09+02:00https://brainmodular.com/forums/viewtopic.php?t=6365&p=40634#p40634
But if you're getting one value at a time from Array queue, then it get's tricky
Indeed, that's the problem.
EDIT: actually, when Array value is 0 you can trigger (by same '=' module) Data Selector from input 1 to input 0 or 2 where there's no value present. So that way 0 will get nowhere and properly replaced by value after it (if it's not 0).
Sounds like a good idea.I'll check this out, thanks!
But if you're getting one value at a time from Array queue, then it get's tricky, because even if you wire it to Stop flow and activate that by '=' module that compares value to 0, as soon as value isn't 0, I think that 0 will get through after being held by Stop flow. At least I think I've dealt with such problem before and usually I just changed my approach so I don't have to do such thing.
EDIT: actually, when Array value is 0 you can trigger (by same '=' module) Data Selector from input 1 to input 0 or 2 where there's no value present. So that way 0 will get nowhere and properly replaced by value after it (if it's not 0).
]]>2018-12-27T18:35:54+02:002018-12-27T18:35:54+02:00https://brainmodular.com/forums/viewtopic.php?t=6365&p=40630#p40630 I am trying to figure out how to filter out zeros from an ever-changing array-queue stream.
There might be two approaches to this:
1) To filter out zeros. But I didn't find a data range filter.
2) To only pass flow if x NOT 0. But it seems I am too dumb today, somehow I can't figure out how to do that either.