7min

Using Carrot to reference org data

You can use Carrot to reference information from your ChartHop organization, such as compensation data, groups, or specific employee data, and reference it directly in your templates as dynamically-generated fields. Learn more.

Useful Carrot expressions

The following section features a list of helpful Carrot expressions available to you and illustrates how you can use them in your templates.

Substitutions

You can use {{curlyBraces}} to substitute any Carrot expression in the body of your template.

Markdown
|

If condition

You can use the if tag to conditionally display a piece of content.

{% if expression %} conditional content {% endif %}

Markdown
|

If... elseif / else

You can use elsif or else to add additional conditions to an if condition block.

Markdown
|

For loops (iterations)

You can use the for tag to iterate through a series of objects.

Markdown
|



Updated 02 Jun 2022
Did this page help?
Yes
No