From 254aceadfc97cb1b38b542b9129e3387fda22b35 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 24 May 2026 19:02:35 +1000 Subject: [PATCH] Updated quickstart --- docs/src/quickstart.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/src/quickstart.md b/docs/src/quickstart.md index 6f2b8ca..2fee909 100644 --- a/docs/src/quickstart.md +++ b/docs/src/quickstart.md @@ -101,7 +101,17 @@ while (true) { } ``` -*Note: The `for` loop is coming soon, and will allow for iteration over an array or table, but isn't vital right now.* +*Note: The `for` loop is underway, and will allow for iteration over an arrays, tables, and maybe functions.* + +``` +//arrays do currently work with for-loops +var array = ["foo", "bar", "buzz", "fizz"]; + +for (var i in array) { + if (i == "buzz") break; //supports break or continue + print i; +} +``` ## Arrays and Tables