Im looking for solution to short this abit since my table is biggerCode:Table = {a,b,c,d,e,f,x} -- Table with tons of elements if Table[1] == x and Table[2] == x and Table[3] == x and Table[4] == x and Table[5] == x and Table[6] == x and Table[7] == x then return true end