Website logo
Navigate through spaces
ChartHop documentation
⌘K
ChartHop Help Center
Getting around in ChartHop
ChartHop for Employees
Implementing ChartHop
ChartHop for Administrators
Carrot reference
ChartHop for Developers
Partners
Release notes
Resources
Docs powered by Archbee
Website logo
Carrot reference
Elements of Carrot expressions

Keywords

This page contains a list of keywords that are used for basic and advanced querying.

Keywords in Carrot are words or phrases that do any of the following:

  • Joins two or more clauses together to form a complex Carrot query.
  • Alters the logic of one or more clauses.
  • Alters the logic of operators.
  • Has an explicit definition in a Carrot query
  • Performs a specific function that alters the results of a Carrot query.

Keyword list

Keyword

Description

: (match)

Returns true where the value of a given field and a given expression partially match.

&& (and)

A logic operator used to evaluate the truthiness of two or more expressions.

|| (or)

A logic operator used to evaluate the truthiness of at least one expression in a sequence of expressions.

if

A logic operator used to return a defined expression based on the truthiness of one or more other expressions.

? (ternary)

Evaluates the truthiness of an expression, and returns the value of one of two expressions based on that outcome.

?: (elvis)

Evaluates the truthiness of the first expression, and returns its value if that value is truthy. If the value of the first expression is not truthy, it returns the value of the second expression.

. (dot)

Used to retrieve a property of a given field.



Updated 04 Oct 2023
Did this page help you?
PREVIOUS
[ ](array)
NEXT
: (match)
Docs powered by Archbee
TABLE OF CONTENTS
Keyword list
Docs powered by Archbee