^table.menu{code}
^table.menu{code}[separator]
^table.menu{code}{separator}
Method menu executes code for each of the table rows, iterating through all table rows one by one-in the given order.
Separator is string or code to be implemented before every non-empty body, except the first. The separator code given in square brackets is processed only once, while that in the curly brackets is processed every time it is inserted.
You can force finish the loop using break operator or finish current step and go to next one using continue operator.[3.2.2] Example $goods[^table::create{pos good price
1 Monitor display 1000
2 System control unit 1500
3 Keyboard 15 }]
<table border=1>
^goods.menu{
<tr>
<td>$goods.pos</td> <td>$goods.good</td> <td>$goods.price</td> </tr>
}
</table>
The example outputs the entire content of table $goods as HTML-coded table.