marqdo

06-collectionok

structure/06-collection.mq.md

Structure

fn · h1main
comment

A single-column Markdown table is a list; loop to read each item. Prefer link-index get [1](basket) (1-based).

bind `basket` = [apple, pear, peach]
foreach[fruit](basket)
call> print text=`fruit`
Functions
Variables
  • basket list · 3
    #value
    1apple
    2pear
    3peach
  • fruit text
    peach

Execution

apple pear peach

Source

---
title: Collections (tables)
description: One-column tables are lists
---

# main

A single-column Markdown table is a list; loop to read each item. Prefer link-index get `[1](basket)` (1-based).

`basket` =

| fruit |
|-------|
| apple |
| pear |
| peach |

- [fruit](basket)
  > print text=`fruit`

Variable