Carrot reference
Operators

+ (add)

An operator used to add two or more expressions.

Syntax

valueOne + valueTwo + valueThree + ...

Sample usage

1 + 2 + 3 returns 6

"concat" + "enate" returns concatenate

('2021-01-01') + 1 returns 2021-01-02

Supported data types

  • If two Numbers, Money values, or Percents are added together, the values will be added.
  • If either side is a String, then both sides will be concatenated as a String.
  • If either side is a List, then both sides are cast to Lists and the two Lists will be joined together.
  • If the left side is a Date, and the right side is a Number, it will return the date plus that many days.
  • If a Money value and a Number value are added, the Money value will increase by the value of the Number.
  • If a Percent value and a Number value are added, the Number value will increase by the value of the Percent.

See also



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