Plan Rules

Plan Rules List
<% let i = 1; list.forEach(function(data) { %> <% i++; }) %>
Gender Food Preference Age BMI Loss Weight Health Condition Recommended Items Plan Action
<%= data.gender %> <%= data.food_preference %> <% if(data.age_range == '<18'){ %> Less then 18 years <% } else if(data.age_range == '>=18') { %> Greater then or equal 18 years <% } else { %> Any <% } %> <% if(data.bmi_range == '<25'){ %> Less then 25 <% } else if(data.bmi_range == '25-27.5') { %> 25 to 27.5 <% } else if(data.bmi_range == '27.6-30') { %> 27.6 to 30 <% } else if(data.bmi_range == '>30') { %> Greater then 30 <% } else if(data.bmi_range == '30-35') { %> 30 to 35 <% } else if(data.bmi_range == '35.1-45') { %> 35.1 to 45 <% } else if(data.bmi_range == '>45') { %> Greater then 45 <% } else if(data.bmi_range == 'any') { %> Any <% } %> <% if(data.loss_weight == '<10'){ %> Less then 10 KG <% } else if(data.loss_weight == '>=10') { %> Greater then or equal 10 KG <% } else if(data.loss_weight == '<20') { %> Less then 20 KG <% } else if(data.loss_weight == '>30') { %> Greater then 30 <% } else if(data.loss_weight == '>=20') { %> Greater then or equal 20 KG <% } else if(data.loss_weight == '10-20') { %> 10 to 20 KG <% } else { %> Any <% } %> <% let j = 0; data.health_condition?.split(",").forEach(function(hc){ %> <% if(hc != ""){ j++ %> <%= j %>. <%= hc %>
<% } %> <% }) %>
<% let k = 0; data.recommended_items?.split(",").forEach(function(item){ %> <% if(item != ""){ k++ %> <%= k %>. <%= item %>
<% } %> <% }) %>
<% let l = 0; data?.plans?.split(",")?.forEach(function(item){ %> <% if(item != ""){ l++ %> <%= l %>. <%= item %>
<% } %> <% }) %>
<% if (!list || list.length <1) { %>
Sorry! No Result Found

We've searched more than 150+ weight loss plan We did not find any weight loss plan for you search.

<% } %>
<% if (listCount > 0) { %>
Showing <% if (((currentPage - 1) * pageSize) + 1 == listCount) { %> <%= listCount %> <% } else { %> <%= ((currentPage - 1) * pageSize) + 1 %> to <%= currentPage == pageCount ? listCount : (currentPage * pageSize) %> <% } %> of <%= listCount %> entries
<% if (currentPage > 1) { %> Previous <% } else { %> Previous <% } %>
    <% for (var j = 1; j <= pageCount; j++) { %> <% if (j >= currentPage - 2 && j <= currentPage + 2) { %> <% if (currentPage == j) { %>
  • <%= j %>
  • <% } else { %>
  • <%= j %>
  • <% } %> <% } %> <% } %>
<% if (currentPage < pageCount) { %> Next <% } else { %> Next <% } %>
<% } %>