How to get number of elements inside of an array?

Hi, I’m making an inventory system and I’ve got a counter with the total slots of the inventory (capacity), now I want to show how much space has been used up. I store the items in the inventory in an array. How do I get the number of elements inside of an array and convert it to text form?

Thanks! :slight_smile:

that didn’t work. already tried it.

it literally just gets the length of the array, nothing else unless I’m using it wrong.

@Dr Caligineus may I also add how unhelpful that rude comment of yours is, and it wasn’t even correct anyway. learn some manners.

The length is the number of elements. My answer is correct and nothing about it is unreasonable. It certainly wasn’t rude - I simply stated facts. I don’t know what your problem is. This is incredibly basic stuff and there was nothing stopping you looking it up yourself.

Array Nodes

1 Like

You can use node “Last index” it will show you last number of an array

1 Like