Get Element
get · v1Reads an element at an Integer index. Outputs a Number and a Valid Gate.
Ports and connections
The default configuration is shown below. Types and capacity can change in node properties; configure the node before connecting ports.
| Port / ID | Type | Connection |
|---|---|---|
Collectioncollection | array | Source collection. Select the matching Array or List type in node properties.Required |
Indexindex | integer | Zero-based integer element index. Convert a Number using Number to Integer.Optional |
Outputout | number | The number result of Get Element, available to other nodes on every sample.Output |
Validvalid | gate | On when the index refers to an existing element. Otherwise, the returned value is 0.Output |
An output can feed multiple inputs of the same type. An input has one source; Function also requires matching signatures. All connection rules →
Parameters
There are no fixed numeric parameters. Custom nodes, collections and C++ expose additional settings through their definition in the inspector.
Node properties
These settings are configured before compilation and cannot be modulated by wires.
- Value type
- Array or List · default Array
The Collection input accepts the selected type; collection outputs use the same type.
How to use it
Array = [10, 20, 30]; Index = 1 through Number to Integer → 20 with Valid on.
Things to check
Indices start at 0. An invalid index gives 0 and Valid off.
Check required inputs and matching types. Run Compile before auditioning; a validation failure preserves the previous working module. Troubleshooting →