thp/doc-generator/markdown/en/docs/latest/flow-control/loops.md

26 lines
260 B
Markdown
Raw Normal View History

# Loops
Loops are indentation-sensitive.
## For each
```misti
// Loop through an object
for key in object do
print(key)
// Loop through an array
for value of array do
print(value)
```
## While
```misti
while condition do
print("loop")
```