# IsBetween Function

• Updated

Returns true if a value is equal to or between two boundary values.

Syntax

 Returns true if a value is equal to or between two boundary values. IsBetween(value, betweenMinimum, betweenMaximum)

 Arguments:

 value Expression - The test value. betweenMinimum Any - The first boundary. betweenMaximum Any - The second boundary.

Remarks

• The two boundary values may be in any order.
• Example: IsBetween(5, 1, 10) returns true.
• Example: IsBetween(5, 10, 1) returns true.
• Example: IsBetween(5, 6, [null]) returns true.
• Example: IsBetween("Jefferson", "Adams", "Lincoln") returns true.

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 %>
<% }); %>
<% } %>