use tables instead of headings

This commit is contained in:
Shaina Raskas
2022-10-18 16:01:41 -04:00
parent 57d41e535f
commit 2f8dc74f95
+25 -121
View File
@@ -222,60 +222,22 @@ Information about a parent [`for` loop](#for).
{% endraw %} {% endraw %}
``` ```
<p class="code-label">Input</p> <p class="code-label">Output</p>
```text ```text
orange-strawberry-banana orange-strawberry-banana
``` ```
### properties ### forloop (properties)
#### length | Property | Description | Returns |
| `length` | The total number of iterations in the loop. | `number` |
The total number of iterations in the loop. | `parentloop` | The parent `forloop` object. If the current `for` loop isn't nested inside another `for` loop, then `nil` is returned. | `forloop` |
| `index` | The 1-based index of the current iteration. | `number` |
returns `number` | `index0` | The 0-based index of the current iteration. | `number` |
| `rindex` | The 1-based index of the current iteration, in reverse order. | `number` |
#### parentloop | `rindex0` | The 0-based index of the current iteration, in reverse order. | `number` |
| `first` | Returns `true` if the current iteration is the first. Returns `false` if not. | `boolean` |
The parent `forloop` object. If the current `for` loop isn't nested inside another `for` loop, then `nil` is returned. | `last` | Returns `true` if the current iteration is the last. Returns `false` if not. | `boolean` |
returns `forloop`
#### index
The 1-based index of the current iteration.
returns `number`
#### index0
The 0-based index of the current iteration.
returns `number`
#### rindex
The 1-based index of the current iteration, in reverse order.
returns `number`
#### rindex0
The 0-based index of the current iteration, in reverse order.
returns `number`
#### first
Returns `true` if the current iteration is the first. Returns `false` if not.
returns `boolean`
#### last
Returns `true` if the current iteration is the last. Returns `false` if not.
returns `boolean`
## cycle ## cycle
@@ -484,76 +446,18 @@ Information about a parent [`tablerow` loop](#tablerow).
} }
``` ```
### Properties ### tablerowloop (properties)
#### col | Property | Description | Returns |
| `col` | The 1-based index of the current column. | `number` |
The 1-based index of the current column. | `col0` | The 0-based index of the current column. | `number` |
| `col_first` | Returns `true` if the current column is the first in the row. Returns `false` if not. | `boolean` |
returns `number` | `col_last` | Returns `true` if the current column is the last in the row. Returns `false` if not. | `boolean` |
| `first` | Returns `true` if the current iteration is the first. Returns `false` if not. | `boolean` |
#### col0 | `index` | The 1-based index of the current iteration. | `number` |
| `index0` | The 0-based index of the current iteration. | `number` |
The 0-based index of the current column. | `last` | Returns `true` if the current iteration is the last. Returns `false` if not. | `boolean` |
| `length` | The total number of iterations in the loop. | `number` |
returns `number` | `rindex` | The 1-based index of the current iteration, in reverse order. | `number` |
| `rindex0` | The 0-based index of the current iteration, in reverse order. | `number` |
#### col_first | `row` | The 1-based index of current row. | `number` |
Returns `true` if the current column is the first in the row. Returns `false` if not.
returns `boolean`
#### col_last
Returns `true` if the current column is the last in the row. Returns `false` if not.
returns `boolean`
#### first
Returns `true` if the current iteration is the first. Returns `false` if not.
returns `boolean`
#### index
The 1-based index of the current iteration.
returns `number`
#### index0
The 0-based index of the current iteration.
returns `number`
#### last
Returns `true` if the current iteration is the last. Returns `false` if not.
returns `boolean`
#### length
The total number of iterations in the loop.
returns `number`
#### rindex
The 1-based index of the current iteration, in reverse order.
returns `number`
#### rindex0
The 0-based index of the current iteration, in reverse order.
returns `number`
#### row
The 1-based index of current row.
returns `number`