title: Next item in a list if condition met
body: <pre><code>candidates = ['abacus', 'ball', 'car']
  
  for candidate in candidates:
       if dict[candidate] == "true":
          """next"""
       else:
         continue
  """do something"""
  </code></pre>
  
  <p>What I'm trying to do here is check for the presence of a term in a dictionary, and if it exists, move the control flow to the next item in the list candidates. I'm having trouble using <code>next()</code>. How do I go about this?</p>