The LISTITEM Tag

    Syntax: {LISTITEM:: key::LIST::output tag to display the item}
    Function: For some reasons it would be nice to have a tag which can access an item, specified with a key. Of course this must be a list which is composed with a key and a text which would look as follows: key::text.
    Example:

    *COLORLIST
    0::<FONT COLOR="red">
    1::<FONT COLOR="orange">
    2::<FONT COLOR="lightgreen">
    3::<FONT COLOR="green">

    *COLOROUTPUT
    {ARG1} {OUTPUT} </FONT>

    *OUTPUT
    this has to be lightgreen!

    *COLOR
    2

    *MAIN
    {LISTITEM::{COLOR}::COLORLIST::COLOROUTPUT}

    returns:

    <FONT COLOR="lightgreen">this has to be lightgreen</FONT>

Back