Find value
Return the zero-based numbers of rows containing a value, in one column or in any column.
Command in the Data Table toolkit · id ooa.datatable/find · 5 inputs (2 required), 5 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Table | Table | Yes | Source table. | |
| Value | Any | Yes | Value to look for. | |
| Column | String | No | Search only this column; all columns when empty. | |
| Match | String | No | equals | equals (numbers compare by value) or contains (text). |
| Match case | Boolean | No | false | Compare text with upper/lower case taken into account. |
Outputs
| Output | Type | What it is |
|---|---|---|
| rows | List | Zero-based row numbers that match. |
| count | Number | Number of matching rows. |
| found | Boolean | True when at least one row matches. |
| cells | List | Every matching cell as a dictionary with zero-based row and column numbers and the column name. |
| first_row | Number | Zero-based number of the first matching row, or -1. |