Skip to content

AppendTo

Name Mandatory Description Default Type
⬅️ Input The value to append to the collection. Any
Output ➡️ The input to this shard is passed through as its output. Any
Collection No The collection to add the input to. none Var([Any])Var(String)Var(Bytes)Var(Audio)

Appends the input to the context variable passed to Collection:.

Details

This shard works on bith string and sequence variables.

See also

Examples

1
2
3
4
5
6
7
8
9
// append element to sequence
[1 2 3] >= seq
4 | AppendTo(seq)    // appends element to sequence
seq | Log            // updated sequence => [1, 2, 3, 4]

// append character to string
"Hell" >= str
"o" | AppendTo(str)  // appends character to string
str | Log            // updated string => Hello

[info] [sample-wire] [1 2 3 4]
[info] [sample-wire] Hello