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
| Name | Type | Details |
|---|---|---|
| Lookup table | Lookup table of Text to Text | The new empty lookup table. |
Lookup table: get value
Returns the value stored under a key in the lookup table.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Lookup table | Lookup table of Text to Any | Yes | Lookup table to read from. |
| Key | Text | Yes | Key to look up. |
Outputs
| Name | Type | Details |
|---|---|---|
| Value | Item | Value 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
| Name | Type | Required | Details |
|---|---|---|---|
| Lookup table | Lookup table of Text to Text | Yes | The original lookup table. It is not changed. |
| Key | Text | Yes | Key to set. |
| Value | Text | Yes | Value to store under the key. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Lookup table of Text to Text | The new lookup table, with the key set. |
Lookup table: has key
Checks whether the lookup table contains the key.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Lookup table | Lookup table of Text to Text | Yes | Lookup table to check. |
| Key | Text | Yes | Key to look for. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Yes/No | True when the key exists. |
Lookup table: keys
Returns all keys of the lookup table as a list.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Lookup table | Lookup table of Text to Text | Yes | Lookup table to read the keys from. |
Outputs
| Name | Type | Details |
|---|---|---|
| Keys | List of Text | List 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
| Name | Type | Required | Details |
|---|---|---|---|
| Lookup table | Lookup table of Text to Text | Yes | The original lookup table. It is not changed. |
| Key | Text | Yes | Key to remove. |
Outputs
| Name | Type | Details |
|---|---|---|
| Result | Lookup table of Text to Text | The new lookup table, without that key. |
Lookup table: size
Returns the number of entries in the lookup table.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Lookup table | Lookup table of Text to Text | Yes | Lookup table to count the entries of. |
Outputs
| Name | Type | Details |
|---|---|---|
| Size | Whole number | Number 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
| Name | Type | Required | Details |
|---|---|---|---|
| Entries | List of Lookup table entry | Yes | The lookup table entries or storage entries to build the lookup table from. |
Outputs
| Name | Type | Details |
|---|---|---|
| Lookup table | Lookup table of Text to Text | The resulting lookup table. |