INPUT /  OUTPUT /  LANGUAGE





join tag

Transient logic tag

Combines a list of values into a single piece of text, with each value optionally separated by a delimiter, and generates the result.

Sample usage

<join 1,2,4> generates the text value {124}

<join 1,2,4 delim={^_^}> generates the text value {1^_^2^_^4}

<join spyName delim={, }> generates the text value {Bond, James} — if spyName is a 2-element vector containning the elements {Bond},{James}.

Fields

Primary field

Vector field

The values to join.

Secondary fields

Behaviour

When the join tag is complete, it generates

The join tag always generates a single piece of text, containing the result of concatenating the elements of its primary field together. The tag's lifetime then ends.

If the delim field is specified, the value of that field is used as a separator between elements in the result.

If an instance name is attached to the join tag, a scalar tag instance with that name will be created to store the result.

Example

<var:vector 1,10,true,{Hey!}>
        <! define a vector named vec with mixed data elements !>

<putLn|join var>
        <! sends {110trueHey!} back to the running program as program input !>

<putLn|join var delim={ and }>
        <! sends: {1 and 10 and true and Hey!} back to the running program !>

See also