Look up value
Find the first row whose column holds a value and return another column of that row, or a fallback value when no row matches.
Command in the Data Table toolkit · id ooa.datatable/lookup · 6 inputs (4 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Table | Table | Yes | Table to look in. | |
| Look in column | String | Yes | Column that holds the value to look for. | |
| Value to look for | Any | Yes | Numbers compare by value; text by equality. | |
| Return the value of column | String | Yes | Column whose value is returned from the matching row. | |
| Value when not found | Any | No | Returned when no row matches; empty when not set. | |
| Match case | Boolean | No | false | Compare text with upper/lower case taken into account. |
Outputs
| Output | Type | What it is |
|---|---|---|
| value | Any | The value from the return column, or the fallback when nothing matches. |
| found | Boolean | True when a row matches. |
| row | Number | Zero-based number of the matching row, or -1. |