Very simple question

This is probably obvious, but…

Can someone tell me how to pass only non-zero values of a spread to something else, in this case the Text plugin?

I have an IOBox(String) with 1 to 8 in its eight slices. I’m listening for a 1 to 8 coming in on OSC. I compare them and pass the matching results (AsString) to the Text Plugin, which is spread transformed to show the different numbers in different places on the screen. I get the right numbers in the right places, but zeroes show up in all the other seven places.

I’m sorry if this is unclear. I’ve attached a sample if that helps…

SimpleQuestion.v4p (12.5 kB)

hi, you have some ways to do that, one is in the file attached.
just put a switch(string) just before the text input pin, and set the first value of switch to nothing, and the second connected to the asstring node. and then, just use the boolean spread for setting the correct value on the correct slice and “nothing” to the other, replacing the 0

SimpleQuestion-1.v4p (12.9 kB)

Great! That worked perfectly. Thanks.