Operators

What is an {{operator}}?

An operator is a template function that enables boolean or other conditional logic in your templates. For example, you may want to include a certain set of text in your legal exhibit when someone wants to purchase a premium support package. With Operators, you can add this type of logic to your templates.

Operators start with curly braces, {{ operatorName }} or can be used as blocks, {{#operatorName}} My Text {{/operatorName}}.

Operators can also contain positional arguments {{# eq "a" "a"}}a=a{{/eq}}.

They can be string interpolated values like the current year {{year}} or blocks like an equality operator {{#eq "a" "a"}}Show the balloons!{{/eq}}.

A how-to with using {{#eq}}

An example to show or hide based on formType: Example on a renewal form
{{#eq deal.contract.formType "renewal"}}Thank you for your continued business!{{/eq}} Thank you for your continued business!
An example to show or hide based on formType: Example on a new order form
{{#eq deal.contract.formType "new-order"}}Thank you for your continued business!{{/eq}} Thank you for your continued business!

Markdown Friendly Inputs support Operators >

How to call the operators and where to use them

Operators can be accessed in Markdown-powered text boxes, such as SKU descriptions and legal text on Terms in Deal Studio and Deal Editor.





Operator Reference API

Category of Operators

Category Description
array Array Operators
collection Collection Operators
comparison Comparison Operators
date Date Operators
e-signature E-Signature Operators
inflection Inflection Operators
math Math Operators
number Number Operators
object Object Operators
regex Regular Expression Operators
string String Operators
url URL Operators
utils Utility Operators

All operators

array operators

collection operators

comparison operators

date operators

e-signature operators

inflection operators

math operators

number operators

object operators

regex operators

url operators

utils operators