CreatorDocumentation 0.3.2 beta
Documentation sectionsIn this article
CREATOR / Collections

Get Element

get · v1

Reads an element at an Integer index. Outputs a Number and a Valid Gate.

Get Element
Inputs
Outputs
Select a port to see its purpose and an example connection. Its reference row will highlight.

Ports and connections

The default configuration is shown below. Types and capacity can change in node properties; configure the node before connecting ports.

Port / IDTypeConnection
CollectioncollectionarraySource collection. Select the matching Array or List type in node properties.Required
IndexindexintegerZero-based integer element index. Convert a Number using Number to Integer.Optional
OutputoutnumberThe number result of Get Element, available to other nodes on every sample.Output
ValidvalidgateOn 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 →