beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.Array.ExclusiveBoolStateArray

ExclusiveBoolStateArray
op id:f8c30313-4251-4d39-bff3-fb1cc9234d54
Array filled with `0`, only one can be `1`

summary (oneliner)

Outputs an array where only one element is 1, the other elements are 0. By changing the Active Index port you can decide which of the elements is the 1.

E.g.:
Active Index is 2: [0, 0, 1, 0, 0, 0, 0, 0, 0, 0]

doc

issues

youtube id

collections

related ops

Inputs

Array Length (Number)

How long the array should be


Active Index (Number)

Which element is the 1


Inactive Value (Number)

Active Value (Number)

Outputs

State Array (Array)

The array containing elements with 0, and one element with 1


Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using ExclusiveBoolStateArray

Public Patches using ExclusiveBoolStateArray