You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Supported list types

Number list

The function returns the NUMBER of numeric values in l.

Syntax
count(number list l) #Output: Number
Examples
Parser expressionDescription
append([1, 1, 2, 2])

The function returns a NUMBER : 4

count(subtasks()) - count(fieldValue({00012}, subtasks())) 

The function returns the NUMBER of sub-tasks with field "Due Date" unset.

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a NUMBER


The function returns the number of times n appears in l.

Syntax
count(number n, number list l) #Output: Number
Examples
Parser expressionDescription
count(1, [1, 1, 2, 2, 1, 0]

The function returns a NUMBER : 3

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a NUMBER


Text list

The function returns the NUMBER of text values in l.

Syntax
count(text list l) #Output: Number
Examples
Parser expressionDescription
count(["blue", "red", "blue", "black"])

The function returns the NUMBER 4

count(distinct(fieldValue(%{00094}, subtasks())))

The function returns the NUMBER of components selected among all sub-tasks.

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a NUMBER



The function returns the NUMBER of times s appears in l.

Syntax
count(text s, text list l) #Output: Number
Examples
Parser expressionDescription
count("blue", ["blue", "blue", "red", "red", "blue", "green"])

The function returns the NUMBER 3

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a NUMBER