Carrot reference
Methods

count{}

Counts the number of times a given expression evaluates to a truthy value. All non-truthy values, such as null, empty string, 0, or false are discarded.

Syntax

count{expression}

  • expression - the Carrot expression to be evaluated.

Sample usage

count{is:open} returns the total number of job records that are open.

count{department:engineering} returns the total number of jobs in the engineering department.

Updated 04 Oct 2023
Doc contributor
Did this page help you?