Coroutine repeat if variable == true?

Started by 4x4x8, Sep 17, 2022, 07:07 AM

Previous topic - Next topic

4x4x8

i got this code:
variable = not variable
coroutine.resume(coro, variable)

what i need put in this code, or in coro code to make it repeat if variable == true?

Lupus590

It sounds like you need a loop of some kind or an If statement, I would search online for control structures in lua.