Easy concatenation question. Help!

I am trying to make the following code work. This is somewhat confusing without explanation.

I have a function for each lot from 1 to 12 called lot1(), lot2() etc. I also have a lot variable that holds the value of what lot I am in. This variable is called currentLot. I need the timer to execute the next lot function. i.e. if the currentLot = 1 I need it to execute lot2(). I can’t seem to get this to work. Can anyone help?

Thanks

[code]
if (lot >=0 and lot < 12) then
local nextLot = currentLot + 1

timer.performWithDelay(lotBreak, “lot”…nextLot,1)

elseif(lot == 12 ) then
timer.performWithDelay(lotBreak, lot1,1)
[/code] [import]uid: 8192 topic_id: 2436 reply_id: 302436[/import]

“lot”…nextLot is a string, not a function. i would put the functions in a table

local lots={lot1,lot2,lot3}  
[/code]and call them using[code]  
timer.performWithDelay(lotBreak,lots[nextLot],1)  

[import]uid: 6459 topic_id: 2436 reply_id: 7225[/import]