文档中的步骤
结构步骤(非实际执行时序)
marqdo
Inside a function body, - starts a loop (not a parameter).
Countdown:
Walk a table (tables are collections):
| fruit |
|---|
| apple |
| pear |
| # | value |
|---|---|
| 1 | apple |
| 2 | pear |
| # | value |
|---|---|
| 1 | apple |
| 2 | pear |
结构步骤(非实际执行时序)
--- markup: occlusion title: Loops description: Condition loops and table walks --- # main Inside a function body, `-` starts a loop (not a parameter). Countdown: **`n` = 3** - `n` > 0 > print text=`n` **`n` = `n` - 1** Walk a table (tables are collections): `basket` = | fruit | |-------| | apple | | pear | - [fruit](遍历 basket 为 fruit) > print text=today `fruit`