
Contents |
Worksheet Extraction
1. wxt test:="mod(col(c),2)=1" ow:=<new>;
2. wxt test:="col(1)<5" sel:=1;
| Display Name | Variable Name | I/O and Type | Default Value | Description |
|---|---|---|---|---|
| Test Condition | test |
Input string | | Specified the test condition string. |
| Worksheet to Extract | iw |
Input Worksheet | | Specified the input worksheet. |
| Column From | c1 |
Input int | | Specified the beginning column of the range to perform the extraction. |
| Column To | c2 |
Input int | | Specified the end column of the range to perform the extraction. |
| Row From | r1 |
Input int | | Specified the beginning column of the range to perform the extraction. |
| Row To | r2 |
Input int | | Specified the end column of the range to perform the extraction. |
| Mark past Cells | sel |
Input int | | Specify the way to mark the past rows (rows that meet the test condition).
Option list:
|
| Extracted | ow |
Output Worksheet | | Specify the worksheet for output.
See the syntax here. |
| On Off for Pass | val |
Output vector | | The X-Function can output a vector to indicate whether the condition is satisfied for each row in the input worksheet: 1 for true and 0 for false. For example, if this vector has two elements, 1 and 0, it will mean that the first row in the input worksheet satisfies the test condition while the second row does not. You can specify this vector with the val variable. |
| Indices of Pass | pass |
Output vector | | Specify a vector which will hold the indices of the past rows. |
| Number of rows that passes | num |
Output int | | Specify the output for the number of the past rows.
|
For more examples, please refer to XF Script Dialog (press F11).