The FOREACHARG Tag

    Syntax: {FOREACHARG::Some tag}
    Function:

    If something should be applied to several arguments, but the number of arguments is not known yet, the FOREACHARG can be useful for that. This tag must be called in another tag.

    It will take its argument ("Some tag") and will now for each argument its parent tag is called with execute the specified tag.

    Example:

    *SOMETAG

    {FOREACHARG::ANYTAG}

    *ANYTAG
    <TD>{ARG1}</TD>

    {SOMETAG::1::2::3::4::n}

    It will output different cells with the numbers 1..n in a HTML table - as many as are specified in the call.

Back