boat (do)
Konten ini belum tersedia dalam bahasa Anda.
Description / Deskripsi
Section titled “Description / Deskripsi”The boat keyword marks the start of the loop body in untu, selama, untuk, and sampe loops.
It is equivalent to do in standard Lua.
Keyword boat menandai awal badan perulangan dalam loop untu, selama, untuk, dan sampe.
Setara dengan do di Lua.
Usage / Penggunaan
Section titled “Usage / Penggunaan”untu condition boat -- codejure_mo
selama condition boat -- codejure_mo
untuk i = 1, 10 boat -- codejure_moExamples
Section titled “Examples”While Loop with Boat
Section titled “While Loop with Boat”ada i = 0
untu i < 3 boat tulis(i) i = i + 1jure_mo-- Output: 0, 1, 2For Loop with Boat
Section titled “For Loop with Boat”untuk i = 1, 5 boat tulis("Angka: " .. tostring(i))jure_moNested Loops
Section titled “Nested Loops”untuk i = 1, 3 boat untuk j = 1, 3 boat tulis(tostring(i) .. "," .. tostring(j)) jure_mojure_mo