ungu (while alternative)
Konten ini belum tersedia dalam bahasa Anda.
Description / Deskripsi
Section titled “Description / Deskripsi”The untu keyword is an alternative way to start a while loop in SamaLang. It functions identically to selama.
It is equivalent to while in standard Lua.
Keyword untu adalah cara alternatif untuk memulai perulangan while dalam SamaLang. Berfungsi sama seperti selama.
Setara dengan while di Lua.
Usage / Penggunaan
Section titled “Usage / Penggunaan”untu condition boat -- codejure_moExamples
Section titled “Examples”Basic Loop
Section titled “Basic Loop”ada i = 1
untu i <= 5 boat tulis("Iterasi " .. tostring(i)) i = i + 1jure_moProcessing Items
Section titled “Processing Items”ada buah = {"apel", "mangga", "jeruk"}ada index = 1
untu index <= #buah boat tulis("Buah ke-" .. tostring(index) .. ": " .. buah[index]) index = index + 1jure_mo