Passa al contenuto principale

Lookup tables

Create lookup tables and read, set and remove values by key.

Create lookup table​

Creates a new, empty lookup table. Add entries with "Lookup table: set value", which hands back a new lookup table every time. To fill a lookup table across several steps, or inside a loop, use "Create lookup table builder" instead.

Outputs

NameTypeDetails
Lookup tableLookup table of Text to TextThe new empty lookup table.

Lookup table: get value​

Returns the value stored under a key in the lookup table.

Inputs

NameTypeRequiredDetails
Lookup tableLookup table of Text to AnyYesLookup table to read from.
KeyTextYesKey to look up.

Outputs

NameTypeDetails
ValueItemValue stored under the key, or empty when the key is missing. May be empty.

Lookup table: set value​

Hands back a new lookup table with the key set to the value and leaves the lookup table you gave it unchanged, so use the result in the next step. To fill a lookup table across several steps, or inside a loop, use "Create lookup table builder" and "Lookup table builder: set value" instead.

Inputs

NameTypeRequiredDetails
Lookup tableLookup table of Text to TextYesThe original lookup table. It is not changed.
KeyTextYesKey to set.
ValueTextYesValue to store under the key.

Outputs

NameTypeDetails
ResultLookup table of Text to TextThe new lookup table, with the key set.

Lookup table: has key​

Checks whether the lookup table contains the key.

Inputs

NameTypeRequiredDetails
Lookup tableLookup table of Text to TextYesLookup table to check.
KeyTextYesKey to look for.

Outputs

NameTypeDetails
ResultYes/NoTrue when the key exists.

Lookup table: keys​

Returns all keys of the lookup table as a list.

Inputs

NameTypeRequiredDetails
Lookup tableLookup table of Text to TextYesLookup table to read the keys from.

Outputs

NameTypeDetails
KeysList of TextList of all keys.

Lookup table: remove key​

Hands back a new lookup table without the given key and leaves the lookup table you gave it unchanged, so use the result in the next step. To remove entries across several steps, or inside a loop, use "Create lookup table builder" and "Lookup table builder: remove key" instead.

Inputs

NameTypeRequiredDetails
Lookup tableLookup table of Text to TextYesThe original lookup table. It is not changed.
KeyTextYesKey to remove.

Outputs

NameTypeDetails
ResultLookup table of Text to TextThe new lookup table, without that key.

Lookup table: size​

Returns the number of entries in the lookup table.

Inputs

NameTypeRequiredDetails
Lookup tableLookup table of Text to TextYesLookup table to count the entries of.

Outputs

NameTypeDetails
SizeWhole numberNumber of entries.

Lookup table from entries​

Builds a lookup table from key and value entries or storage leaderboard entries. Storage subjects become keys. When a key appears more than once, the later entry wins.

Inputs

NameTypeRequiredDetails
EntriesList of Lookup table entryYesThe lookup table entries or storage entries to build the lookup table from.

Outputs

NameTypeDetails
Lookup tableLookup table of Text to TextThe resulting lookup table.
Need more help?
Can't find what you're looking for? Our team is happy to help.