table write column selected rows
This function writes values in a set vertically into a specified table column where the rows are chosen with a boolean expression. The write operation ends if either one of the two criteria are met:
Indirect parameter passing is disabled
This function provides a table context for partial table specifications with table name and row number for selected function parameters
4
No. | Type | Description |
---|---|---|
1. input |
string | Name of existing table |
2. input |
table column | Existing column See table columns as function parameters for general ruling for this parameter.
|
3. code |
expression :string |
Expression to select rows Specify the conditions or rules to select the rows. See expressions to select rows. |
4. input |
set | Contents to write The elements in the set will be written into the appicable rows. |
Type | Description |
---|---|
boolean | Feedback true if operation was successful, and false if not. |
include( Support Library ); // for 'table list' function
table initialize ( table 1, { { Animal, leg count },
{ Worm, 0}, { Bird, 2 }, { Dog, 4 }, { Fly, 6 }, { Tick, 8 } } );
[table 1:2,0] = size;
table write column selected rows( table 1, size, ([Animal]=Dog,Bird), { Not small, Big, Tiny } );
// Note: 'Tiny' will not be written.
table list( table 1 );
0 : Animal | leg count | size
1 : Worm | 0 |
2 : Bird | 2 | Not small
3 : Dog | 4 | Big
4 : Fly | 6 |
5 : Tick | 8 |