What Are Loops Used For In A Lua Code Example


Example 1: loop in lua

-- a loop will repeat the code for a limited amount of time -- let make one for a = 1 --(from where you want it to start),10 --(how long you want it to be),1 --[How many jumps it needs to make(ex 2, 4, 6, 8,10)] 	print(a) -- now it will count to 10 end

Example 2: lua loops

while expression do   --code end

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable