title: if within if python
body: <p>I have been searching but cannot find information to help me correct this.</p>
  
  <p>To practice programming in python I am working on control code for home automation.  I started out with temperature conversion calculator and that works well.  Then I put that within another "if" to give it the functionality to change temperature and read current temperature.  This put my convertor "if" as a sub to my control "if".  The program opens well, but only goes to the line for the converter.  It is not going to the "elif" statements that are a part of the general control.  Below:</p>
  
  <pre><code>while True:
  
      task = (raw_input("What would you like to do? "))
  
      if task == 'Convert' or 'convert':
          ask = raw_input("C to get Celsius, F to get Fahrenheit: ")
  
          if ask == 'F':
              Cconvert = float(raw_input("Temp in C: "))
              F = Cconvert * 9 / 5 + 32
              print F, 'F'
  
          elif ask == 'C':
              Fconvert = float(raw_input("Temp in F: "))
              C = ((Fconvert - 32) * 5) / 9
              print C, 'C'
  
          else:
              print "That is not a temperature measurement I understand."
  
      elif task == "ChangeTemp":
          temptype = raw_input("Celsius or Fahrenheit? ")
          if temptype == "Celcius" or "celsius":
              temp = float(raw_input("New Temp: ")), str(temptype)
          elif temptype == "Fahrenheit" or "fahrenheit":
              temp = float(raw_input("New Temp: ")), str(temptype)
          else:
              print "That is not a temperature measurement I understand."
  
      elif task == "SetTemp":
          print temp
  
      else:
          print "I do not know what you are asking."
  </code></pre>
  
  <p>If this is answered elsewhere and I simply could not find it, please link.</p>