Passa al contenuto principale

Builders

Builders collect text, lists, lookup tables or numbers across many steps, including inside a loop, and give you the result once at the end. Adding to a builder changes the builder itself.

Create text builder​

Creates a text builder: text that later steps append to in place, so anything appended inside a loop is still there afterwards, and that you read out once at the end. Efficient for building large text (e.g. transcripts or reports) without re-joining on every step. The builder only lasts for this execution and is lost after a wait/resume.

Inputs

NameTypeRequiredDetails
Initial textTextNoOptional text to start the builder with (empty if not set).

Outputs

NameTypeDetails
Text builderText builderThe new text builder. Use it in the other "Text builder" steps.

Text builder: append text​

Appends text to a text builder. This changes the builder itself, so there is nothing to pass on, and text appended inside a loop is still there after the loop ends. If a separator is set, it is inserted before the text only when the builder is not already empty (so a list builds "a, b, c" with no leading separator).

Inputs

NameTypeRequiredDetails
Text builderText builderYesThe text builder to append to.
TextTextYesThe text to append.
SeparatorTextNoOptional separator inserted before the text when the builder is not empty (e.g. ", " or a newline).

Text builder: read the text​

Reads a text builder out as an ordinary text you can pass to the other text steps. The builder is not emptied and can still be appended to afterwards, and the text you get is a snapshot, so later appends do not reach it.

Inputs

NameTypeRequiredDetails
Text builderText builderYesThe text builder to read.

Outputs

NameTypeDetails
TextTextThe builder's full contents as a text.
LengthWhole numberThe number of characters in the builder.

Create lookup table builder​

Creates a lookup table builder: a lookup table that later steps change in place, so entries you set inside a loop are still there afterwards, and that you read out once at the end. This is the difference from "Lookup table: set value", which leaves the lookup table you gave it alone and hands back a new one. The builder only lasts for this execution and is lost after a wait/resume.

Inputs

NameTypeRequiredDetails
Starting lookup tableLookup table of Text to AnyNoOptional lookup table to start from (empty if not set). It is copied, so the original is never changed.

Outputs

NameTypeDetails
Lookup table builderLookup table builderThe new lookup table builder. Use it in the other "Lookup table builder" steps.

Lookup table builder: set value​

Sets a key on a lookup table builder. This changes the builder itself, so there is nothing to pass on, and an entry set inside a loop is still there after the loop ends. Setting a key that is already there replaces its value.

Inputs

NameTypeRequiredDetails
Lookup table builderLookup table builderYesThe lookup table builder to change.
KeyTextYesThe key to set.
ValueAnyYesThe value to store under that key. Any type, not just text.

Lookup table builder: remove key​

Removes a key from a lookup table builder. This changes the builder itself, so there is nothing to pass on. A key that is not there is left alone rather than treated as an error.

Inputs

NameTypeRequiredDetails
Lookup table builderLookup table builderYesThe lookup table builder to change.
KeyTextYesThe key to remove.

Lookup table builder: size​

How many entries a lookup table builder holds right now. Use this while you are still building instead of reading the whole lookup table out, which copies every entry each time you do it.

Inputs

NameTypeRequiredDetails
Lookup table builderLookup table builderYesThe lookup table builder to count.

Outputs

NameTypeDetails
SizeWhole numberThe number of entries in the builder.

Lookup table builder: read the lookup table​

Reads a lookup table builder out as an ordinary lookup table you can pass to the other lookup table steps. The builder is not emptied and can still be changed afterwards, and the lookup table you get is a copy, so later changes do not reach it.

Inputs

NameTypeRequiredDetails
Lookup table builderLookup table builderYesThe lookup table builder to read.

Outputs

NameTypeDetails
Lookup tableLookup table of Text to AnyThe builder's entries as an ordinary lookup table.
SizeWhole numberThe number of entries in the lookup table.

Create list builder​

Creates a list builder: a list that later steps add to in place, so items added inside a loop are still there afterwards, and that you read out once at the end. This is the difference from "Add item to list", which leaves the list you gave it alone and hands back a new one. The builder only lasts for this execution and is lost after a wait/resume.

Inputs

NameTypeRequiredDetails
Starting listList of AnyNoOptional list to start from (empty if not set). It is copied, so the original is never changed.

Outputs

NameTypeDetails
List builderList builderThe new list builder. Use it in the other "List builder" steps.

List builder: add item​

Adds a value to the end of a list builder. This changes the builder itself, so there is nothing to pass on, and an item added inside a loop is still there after the loop ends. Items stay in the order the steps ran.

Inputs

NameTypeRequiredDetails
List builderList builderYesThe list builder to add to.
ValueAnyYesThe value to add. Any type, not just text.

List builder: size​

How many items a list builder holds right now. Use this while you are still building instead of reading the whole list out, which copies every item each time you do it.

Inputs

NameTypeRequiredDetails
List builderList builderYesThe list builder to count.

Outputs

NameTypeDetails
SizeWhole numberThe number of items in the builder.

List builder: read the list​

Reads a list builder out as an ordinary list you can pass to the other list steps. The builder is not emptied and can still be added to afterwards, and the list you get is a copy, so later changes do not reach it.

Inputs

NameTypeRequiredDetails
List builderList builderYesThe list builder to read.

Outputs

NameTypeDetails
ListList of AnyThe builder's items as an ordinary list.
SizeWhole numberThe number of items in the list.

Create number builder​

Creates a number builder: a running total that later steps add to in place, so amounts added inside a loop are still counted afterwards, and that you read out once at the end. The builder only lasts for this execution and is lost after a wait/resume.

Inputs

NameTypeRequiredDetails
Starting numberDecimal numberNoOptional number to start the total at (0 if not set).

Outputs

NameTypeDetails
Number builderNumber builderThe new number builder. Use it in the other "Number builder" steps.

Number builder: add amount​

Adds an amount to a number builder. This changes the builder itself, so there is nothing to pass on, and an amount added inside a loop still counts after the loop ends. Use a negative amount to subtract.

Inputs

NameTypeRequiredDetails
Number builderNumber builderYesThe number builder to add to.
AmountDecimal numberYesThe amount to add. A negative amount subtracts.

Number builder: read the total​

Reads the running total of a number builder, together with how many times something was added to it (total and count give you an average). The builder is not reset and can still be added to afterwards.

Inputs

NameTypeRequiredDetails
Number builderNumber builderYesThe number builder to read.

Outputs

NameTypeDetails
TotalDecimal numberThe running total.
CountWhole numberHow many times an amount was added.
Need more help?
Can't find what you're looking for? Our team is happy to help.