Array index out of bounds condition checking macro

I’m getting the below crash after I spawn an actor

Assertion failed: (Index >= 0) & (Index < ArrayNum)
Array index out of bounds: 1 from an array of size 1

Would this macro work as a check against that? I am using a lot of isContains/ForeachLoops with arrays

Hello Samson F.,

Assuming Last Index (never used that node) returns the index while accounting for 0 base, this should work from what I understand these values to be. What is New Param 1-4? What is Get Check? The only thing I notice that is out of place is the second branch. That branch is checking the same boolean from the previous branch. It’s always going to be true if the previous one was true, and is only called when the first branch is true, so it seems redundant.

The get check is to see if the index falls within the length of the array so I don’t get array out of bounds crash

param 1 is the exit after passing all the checks including get check if enabled,
param 2 is the wildcard array,
param 3 is the get index I want to check,
param 4 is complete is fail for both length/get check

I need to switch the places of the two branches. So the length is valid and I can go ahead and check if the get I am running on the outside will be valid

My finished product

http://i.imgur.com/DQ7I9QL.png

there’s a “is valid index” macro which I assume does the same thing here