title: Adding a formula to a Gravity Forms form
body: <p>Gravity forms allows for basic field calculations using merge tags, such as <code>{Field 1:1} * {Field 2:2}</code>, but I would like to use if/and/else statements to set a field value such as:</p>
  
  <p><code>if (and ({Field 1:1} = 200,{Field 2:2} = 1), 100, if (and ({Field 1:1} = 200,{Field 2:2} = 2), 150, if (and ({Field 1:1} = 200,{Field 2:2} &gt; 2), 200, 0)))</code></p>
  
  <p>or in other words:</p>
  
  <p><code>if (field_1 = 200) {
      if (field_2 = 1) {
          field_3 = 100
      } else if (field_2 = 2) {
          field_3 = 150
      } else {
          field_3 = 200
  }</code></p>
  
  <p>Hoping someone can give me some idea of how to include this kind of calculation in Gravity Forms.</p>
  
  <p>FYI: <a href="http://indigobrazilianportuguese.com/courses-prices/booking/" rel="nofollow">Here is the form I am working on</a>. I hope to use formulas instead of 21 different variations of the 'Course 1 week 1 topup' conditional field which appears only when course 1 and week 1 are selected.</p>
  
  <p>Thanks!</p>