Runtime verified Test scripts included

Returns the quotient of dividing the first value by the second.

Syntax

{{divide dividend divisor}}

Returns number.

Parameters

Name Type Required Description
dividend number Yes Number to divide.
divisor number Yes Value to divide by; cannot be 0.

Example

Tested in a Marketing Cloud Next email on 2026-11-22:

  • {{divide 10 4}} renders 2.5, as documented.
  • {{divide 10 3}} renders 3.33, as documented.
Show Next test script
<!-- Marketing Cloud Next test script for the divide helper. Paste it into the HTML component of a
     Next email and open the preview. Each line prints the result Next gave when the call
     was rendered on its own (expect) next to the result of this run (got).
     Assembled from single-call test emails (dates on the page); it has not been
     run as one email. Calls that make Next fail are listed separately. -->
<p>c1 expect=[2.5] got=[{{divide 10 4}}]</p>
<p>c2 expect=[3.33] got=[{{divide 10 3}}]</p>

Marketing Cloud Next

Works as documented

Every tested call rendered the documented result. Tested 2026-11-22 by rendering in a Marketing Cloud Next email.

See also