Model - Table functions
Every function callable as Table.* inside an expression — an argument input, a parameter binding, a table cell. Pure: no side effects, no async.
| Function | Returns | Description | Arg | Type | Meaning |
|---|---|---|---|---|---|
Table.cell(key, index, column) | number | One cell, or null when the row or column is missing. | key | string | a tables[] chain key |
index | number | 0-based row index | |||
column | string | column name | |||
Table.column(key, column) | object | One column's values, in row order. | key | string | a tables[] chain key |
column | string | column name | |||
Table.count(key) | number | Row count of a table. | key | string | a tables[] chain key |
Table.find(key, predicate) | object | The first matching row, or null. Table.find('parts', { sku: 'A-1' }) is the lookup idiom. | key | string | a tables[] chain key |
predicate | function | object | row => boolean, or a { column: value } match object | |||
Table.get(key) | object | The whole resolved table — { columns, rows }. Wired in root/scene expressions and a sheet's flat operations. NOT in a texture chain's parameters or a component body — both are isolated functions of their own args (see RUNTIME_CONTEXTS). | key | string | a tables[] chain key |
Table.row(key, index) | object | One row by index, or null when out of range. | key | string | a tables[] chain key |
index | number | 0-based row index | |||
Table.rows(key) | object | Just the rows of a table — an array of plain objects keyed by column name. | key | string | a tables[] chain key |