Add break continue

This commit is contained in:
2026-01-16 00:01:23 +08:00
parent df84159ed8
commit 9c5a3397d9
9 changed files with 137 additions and 4 deletions

View File

@@ -34,6 +34,14 @@ print("List:", numbers);
print("First element (index 0):", numbers[0]);
print("Third element (index 2):", numbers[2]);
for(number i = 0; i < len(numbers); i = i + 1) {
print("List element", numbers[i]);
}
while(true) {
print("test break");
break;
}
// Test maps
print("\n=== Map Demo ===");
map config = {"host": "localhost", "port": "8080"};