I have two tables, the for loop I use to output the table content is supposed to loop 25 times but I cant get it to work, I keep getting an unexpected symbol error and I am not sure why. I even made it to where now I am just trying to output a single string 25 times to see if I could get that to work but no luck.
Here is my code, any help is appreciated.
CODE
local tips = { "W", "R", "Blk", "Y", "V" }; local rings = { "Bl", "Or", "G", "Br", "S" } local fontSize 22; -- Display 25 pair logic for i = 1, 25 do local indxT = 1; -- index for tip local indxR = 1; -- index for ring local ifRun = 1; -- number of times the for loop has ran. -- change tip color if var equals number if (ifRun == 5 or ifRun == 10 or ifRun == 15 or ifRun == 20) then -- increment tip indxT = indxT + 1; end -- End if statement local highPair = display.newText( "hello", 20,20,native.systemFont,fontSize); indxR = indxR + 1; -- Increment Ring color -- reset rings after using last ring color if indxR == 5 then indxR = 1; end end -- Ends for loop