title: 'For' loop within 'if' (that continues to 'elif') statement
body: <p>I have a block of if, elif, and else statements. The if statement compares an item within a list then does things with the found item. The elif's and else do not do anything with the list, so I didn't see the point in putting all of it within a for loop.</p>
  
  <pre><code>if myText.count(myItem for myItem in myList):
      doSomething using myText and myItem
  elif otherThing1:
      doStuff
  elif otherThing2:
      doOther stuff
  else:
      forget this, go have a drink
  </code></pre>
  
  <p>I get an error in the first line of course, but is there a Pythonic way to get what I'm looking for without having to restructure my entire code?</p>