Action group: Tables
The action returns the number of columns for the entire table, not for a specific row (similar to the Get Number of Rows action). If "Skip empty columns" is enabled, only if the entire column is empty, it will not be counted.
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Data table | Table where to count the columns. | Robin.DataTable | Yes | |
Skip empty | If the value is «true», the action will only count the filled columns. | Robin.Boolean | true | No |
Results | ||||
Result | Number of columns in the table. | Robin.Numeric |
None.
There is a table.
It is necessary to calculate the number of columns in a given table. Output the result to the log.
Use "Get table from CSV", "Count columns", "Message in log" actions.
Let's assemble the following robot scheme consisting of actions:
The program robot completed successfully.
The number 3 is printed in the log, which corresponds to 3 columns in the table.