#how do i make a loop run a certain amount of times?

32 messages · Page 1 of 1 (latest)

quasi kelp
#

I'm trying to make a repeat run 6 times, and i don't want to make a variable for it.

quasi kelp
#

h o w

cinder aspen
#

for i = 1, 6 do
end

quasi kelp
#

ok

#

thanks

cinder aspen
#

👍

#

@quasi kelp how did u not know that

quasi kelp
#

because

#

i am

#

a dumbass

cinder aspen
#

ok

#

show code

#

i wanna see what making

#

what are u making

quasi kelp
#

no

cinder aspen
#

i like ur random content

#

random creator

agile hawk
#

Just use function

#
Lua

local function l(x)
    if (x != 6)
            --implement here
             l(x+1)  
   end
end
unborn otter
#

Thats not lua...

agile hawk
#

?

quasi kelp
#

i have to agree

#

that is not lua

cinder aspen
#
local function l(x)
    if (x != 6)
            --implement here
             l(x+1)  
   end
end
#

that is not lua ;-;

unborn otter
#

Thats python (or c++ idk) and lua

agile hawk
#

Lua supports recursive function but what

#

Oh it was ```
if (!(x == 6)) {}

quasi kelp
#

mf what