MAINSAIL Language Manual, Section 30.17

previous   next   top   contents   index   framed top   this page unframed


30.17. $arg

$arg is a special built-in macro that takes two arguments: a piece of bracketed text and a number n. It treats the bracketed text as a list separated by commas and expands to the nth item in the list.

$arg is often used in conjunction with REPEATABLE macro parameters. It is described in detail in Section 15.6.1.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 30.17