How it works

The Instruction operation "append" is a string processing operation that concatenates the data from all the input elements. Append is useful operation for providing a fast way of concatenating multiple inputs. The inputs are concatenated first to last.

"Append" Examples

The example below shows three strings concatenated. So first [hello], then [there] and then [world]

Example 1: Basic usage

<instruction operation="append"> 
         <input>[hello]</c:input>
         <input>[there]</c:input>
         <input>[world]</c:input>
</instruction>
[hello][there][world]

Example 2: Appending to a store

The example below shows three strings appended to a store, "htw" contains "[hello][there][world]

<instruction operation="append">
         <output space="store" value="htw" /> <!-- this is the destination -->
               <input>[hello]</c:input>
               <input>[there]</c:input>
               <input>[world]</c:input>
</instruction>
(store "htw" contains "[hello][there][world]")

Example 3: Appending to a store

The example below appends the three strings to a store, but this time using the "sql" operation to select each element as their first word, this word is then passed to a field with the first letter as the value, the result is the same as in the example 1 above.

<iteration operation="sql">
      <control value="select '[hello]' as h,'[there]' as t, '[world]' as w">
          <body>
              <instruction operation="append"> 
                   <input space="field" value="h" />
                   <input space="field" value="t" />
                   <input space="field" value="w" />
              </instruction>
          </body>
</iteration>
[hello][there][world]



Last Modified: Thu, 15 Jan 2015