slist - create Metamorph set list

SYNOPSIS

<slist $intersect $values>


DESCRIPTION
The slist function returns the given list of values as one Metamorph query with $intersect intersections. Each value is double-quoted. If the list is empty, the returned list is empty too.

This function can be used to create a Metamorph query for markup using fmt (here).


DIAGNOSTICS
slist returns a Metamorph query for $intersect intersections of the values of $values.


EXAMPLE

<$list = "red" "blue" "violet">
<slist 1 $list>
<fmt "%mIH" $ret "Roses are red, not blue.">

The output would be:

Roses are <B>red</B>, not <B>blue</B>.

The query executed ($ret) was @1 "red" "blue" "violet".


CAVEATS
The slist function was added Sep. 10 1996.

The values of $values should not contain non-ASCII characters.


SEE ALSO
clist, Metamorph documentation


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.