title: Python multiple if else function and return
body: <p>Is this possible on python ? </p>
  
  <pre><code>def NearSourceFactor(seismic_source_distance,seismic_source_select): 
      Na = 0 
      if (seismic_source_distance &lt;= 2) and (seismic_source_select == "A"):
          Na == 1.5
      elif (seismic_source_distance &lt;= 5) and (seismic_source_select == "A"):
          return Na == 1.2
      elif (seismic_source_distance &gt; 10) and (seismic_source_select == "A"):
          return Na == 1.0
      elif (seismic_source_distance &lt;= 2) and (seismic_source_select == "B"):
          return Na == 1.3
      elif (seismic_source_distance &lt;= 5) and (seismic_source_select == "B"):
          return Na == 1.0
      elif (seismic_source_distance &gt; 10) and (seismic_source_select == "B"):
          return Na == 1.0
      elif (seismic_source_distance &lt;= 2) and (seismic_source_select == "C"):
          return Na == 1.0
      elif (seismic_source_distance &lt;= 5) and (seismic_source_select == "C"):
          return Na == 1.0
      elif (seismic_source_distance &gt; 10) and (seismic_bldg_geometry == "C"):
          return Na == 1.0
  
  Na = NearSourceFactor(seismic_source_distance,seismic_source_select) 
  </code></pre>
  
  <p><code>seismic_source</code> is 10 and <code>seismic_source_select</code> = B but unfortunately the answer is = "None" </p>
  
  <p>I'm expecting the answer is 1.0 </p>