website logo
Navigate through spaces
Carrot reference
⌘K
Carrot reference
Getting started with Carrot
Built-in Carrot filters
Carrot fields
Basic Org Information
Compensation
Job Changes
Permissions
Personal
Recruiting
Structure
Time off
Data types
Elements of Carrot expressions
Functions
Operators
Keywords
Aggregators
Docs powered by archbee 
website logo

ç

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

Syntax

condition ? ifTrue : ifFalse

  • condition - the conditional expression to be evaluated for truthiness.
  • ifTrue - the expression to be evaluated if condition is found to be truthy.
  • ifFalse - the expression to be evaluated if condition is not found to be truthy.

Sample usage

base * (tenure < 12 ? tenure / 12 : 1) returns the prorated base salary of someone if they are under 12 months tenure, otherwise returns their base.

See also

  • ?: (elvis)
  • . (dot)
  • && (and)



Updated 03 Mar 2023
Did this page help you?
Yes
No
UP NEXT
?: (elvis)
Docs powered by archbee