If greater than

Conditionally merges different content depending on whether a number is greater than the one you give. Use it for a threshold: spend over an amount, points above a level, orders beyond a count.

Syntax

{{#ifGt data value}}true content{{else}}false content{{/ifGt}}

Parameters

Name Type Required Description
Data Number Required The value to evaluate.
Value Number Required The value it must be greater than.
Note: The threshold itself does not count. A value of exactly 100 is not greater than 100, so the false content merges. Use If greater than or equal to when the boundary should be included.
Note: Both values must read as numbers. If the field holds text that cannot be read as one, the false content merges, so an empty or mistyped field quietly takes the else branch rather than reporting a problem.
Tip: The {{else}} part is optional. Leave it out and nothing merges when the test fails, as in the example below.

Examples

The examples below are based on the following sample content:

{{#ifGt Contact.points 100}}You are on a roll!{{/ifGt}}

A. The contact's points field has the value 105

You are on a roll!

B. The contact's points field has the value 100

Nothing is merged.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us