if array[5] == exist:
do.
How do I check if an index exists in an array?
You can check if the index is within the size of the array using something like this (untested, off memory):
if 5 <= array.size()-1:
print array[5]
(Moved to programming category)
it work thank you
2 years later
Megalomaniak added the Godot Help tag .