Description
The markedColumns
function returns all marked columns of a project. If a color is specified, only the columns marked with that color are returned. If the count
parameter is set to 1
, the function returns the number of matching columns instead of their names.
Syntax
markedColumns([color], [count])
Arguments
Argument | Description |
---|---|
color |
(Optional) The name of the color to filter marked columns. If not specified, all marked columns are returned. |
count |
(Optional) If set to 1 , the function returns the number of marked columns. By default, this parameter is set to 0 . |
Return Types
The function returns either a list of marked columns (as a string) or a number representing the count of matching columns.
Examples
Description | Formula |
---|---|
Return all marked columns |
markedColumns() Result: "Column 1, Column 2" |
Return marked columns of a specific color |
markedColumns("Crimson") Result: "Red Column" |
Return the count of marked columns |
markedColumns("Crimson", 1) Result: 1 |
Notes
- This function is particularly useful for analyzing and filtering data in projects where marked columns are used.
- Ensure that color names are correctly specified to obtain accurate results.
Comments
0 comments
Please sign in to leave a comment.