• Updated

Expressions are equations that perform calculations on values in your rule application. For example, the following formula multiplies 4 by 5 and then adds 6 to the result.

6+4*5

An expression can also contain any or all of the following: functions, references to other fields and calculations, operators, and constants. You can use parentheses to control the order in which an expression is evaluated.

The following is an example of an expression and the breakdown of its components: 1. Functions: The Round() function specifies the number of digits to the right of the decimal point to truncate
2. References: Invoice. Total the value of the Total calculation on the Invoice entity.
3. Operators: The "+" (or plus) operator adds the constant 20 to the result of the round function.
4. Constants: Numbers or text values entered directly into a formula, such as 20.

0 out of 0 found this helpful

<% if (previousArticle || nextArticle) { %>
<% if (previousArticle) { %>
<% if (previousTitle) { %>

#### <%= previousTitle %>

<% } %> <%= previousArticle.title %>
<% } %> <% if (nextArticle) { %>
<% if (nextTitle) { %>

#### <%= nextTitle %>

<% } %> <%= nextArticle.title %>
<% } %>
<% } %>
<% if (items.length > 1) { %>

<% items.forEach(function(item) { %>
1. <%= item.name %> <%= partial('partial-table-of-contents', { items: item.children, partial: partial }) %>
2. <% }); %>
<% } %>
<% if (items.length) { %>
<% items.forEach(function(item) { %>
1. <%= item.name %> <%= partial('partial-table-of-contents', { items: item.children, partial: partial }) %>
2. <% }); %>
<% } %>
<% if (children.length) { %>
<% children.forEach(function(child, index) { %>
<%= child.innerHTML %>
<% }); %>
<% } %>