I have a table right here {"String 1", "String 2", "String 3", "String 4", "String 5"}
I want to select element 3 to 5...
local number = 0 for _, string in pairs(yourtable) do number = number + 1 if number >= 3 and number <= 5 then --is under 3/5 or equal to 3/5 end end
or
local number = 0 for _, string in pairs(yourtable) do number = number + 1 if number == 3 and number == 5 then --is under 3 or 5 end end