Array Length returning 0 when array has elements

The program I’m working on has a section where if an array has any elements, it goes into a while loop. For some reason, the array length node isn’t working, and is returning 0 even if the array has elements.



I tried a workaround by manually adding to a variable every time an element was added to the array, but the greater than node attached to that returns 0 as well.

Array length nodes work. What does not work is the debugger.

You’re a lot better off checking values with a print string :slight_smile:

@ClockworkOcean No, they don’t. I’m working in 5.21 and the array length blueprint out node is returning zero and you can see the array into the node length is 18.

Right, but that’s not an array length node, that’s a variable :wink:

Best to show some code.