How do you print index of array?


Just same as the image, how to print that index when OnBegin?

And is there a way to print only specific number of index? I mean 5 elements array, and I wanna print index of element 3. Can I do this?

if(MyArray0:=What[0]:
     Print(MyArray0)
if(MyArray2:=What[2]:
     Print(MyArray2)