title: Reduce the cyclometic complexity for multiple if else statements
body: <p>I have a function which accepts a <code>Textfield</code> as parameter and based on the tag, the number changes; Here is the code sample   </p>
  
  <pre><code>func textFieldDidChange(_ textField: UITextField) {
      if(textField.tag == 0){
          measureMentObject?.bloodPressureSystolic = myNumber
      }else  if(textField.tag == 1){
          measureMentObject?.bloodPressureDiastolic = myNumber
      }else  if(textField.tag == 2){
          measureMentObject?.heartRate = myNumber
      }else  if(textField.tag == 3){
          measureMentObject?.bodyTemperature = myNumber
      }else  if(textField.tag == 4){
          measureMentObject?.respitoryRate = myNumber
      }else  if(textField.tag == 5){
          measureMentObject?.o2Saturation = myNumber
      }else  if(textField.tag == 6){
          measureMentObject?.painScale = myNumber
      }else  if(textField.tag == 7){
          measureMentObject?.weight = myNumber
      }else  if(textField.tag == 8){
          measureMentObject?.po = myNumber
      }else  if(textField.tag == 13){
          measureMentObject?.gastricTube = myNumber
      }
  }
  </code></pre>
  
  <p>How do I reduce the cyclometic complexity in this case?</p>