Table index problem

Is there a way to get an index of a table without using for i,v in pairs??

if there is please tell me.

table.find(T, value) returns the first index value can be found at - given T is an array - or nil if it’s not in the table. No way around using loops if you can’t use table.find. You’re describing a search algorithm problem.