Prism · Math

$add

Adds two numbers. Each of the four arithmetic operators takes exactly two operands, and an operand is any expression.

The source
{ price: 99, tax: 8 }
The config
{ $add: [{ $ref: '$.price' }, { $ref: '$.tax' }] }
What comes out
107
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.