Skip to main content

Array_NextIndex

Returns the next index in the array. If the next index is greater than the last valid array index and bLoop is enabled, the index will loop back to the start of the array. Otherwise, the last index of the array will be returned.
Inputs
TArray<int32>
required
The array to get the next index for.
int32
required
The current index.
bool
If true, the index will loop back to the beginning of the array when the next index is greater than the last array index. Otherwise, the last index will be returned.
Outputs
int32
The next index in the array.

Array_PreviousIndex

Returns the previous index in the array. If the previous index is less than 0 and bLoop is enabled, the index will loop back to the end of the array. Otherwise, 0 will be returned.
Inputs
TArray<int32>
required
The array to get the previous index for.
int32
required
The current index.
bool
If true, the index will loop back to the end of the array when the previous index is less than 0. Otherwise, 0 will be returned.
Outputs
int32
The previous index in the array.