Forum

Converting index numbers to toggles

This should be quite simple, but I can’t find the right node for it. How to convert a spread of values (index numbers) into a spread of toggles whose on/off state corresponds to the index numbers (and vice versa)? Image attached…

… no text …

forguest.v4p (4.2 kB)

with Select (Value) and SetSlice (Spreads):

forguest.v4p (7.8 kB)

Since you’re dealing with indexes, if the indexes spread is the content of some output pin, keep in mind that you retrieve the SliceCount with Count (Value) - so to feed with its Count pin the Select Select pin.

Ah, got it!
Thanks a lot!