_section

Display a List as a Header, followed by its contents -- Function
_section is intended for the common case where you want to display a section on the page if and only if a specific List is non-empty. It looks like this: My List -> _section(HEADER, DETAILS, EMPTY) Each of the parameters can be any QL phrase, although they are often just text blocks. They are treated as follows:
  • HEADER is shown first, if the incoming List is non-empty. It gets the entire List as its Context.
  • DETAILS is shown after the header, also getting the incoming List as its Context.
  • EMPTY is shown if and only if the List is empty. This lets you show something else if appropriate. It is optional -- you can leave it off.
Note that the generated QText will have the HEADER on a separate line from the DETAILS. This is usually what you want. It means that, for example, if you start the HEADER with "###", it will show up as a true header, separate from the DETAILS, but if it is just something like "Contents:", the HEADER and DETAILS will run together, since QText joins ordinary text lines together.