Python loop controler continue is not working properly
<p>As I know, "continue" will jump back to the top of the loop. But in my case it's not jumping back, continue don't like me :(</p>

<pre><code>for cases in files:
  if ('python' in cases.split()):
    execute_python_scripts(cases.split())
    elif run_test_case(cases.split()):
      continue
    else:
      logger("I am here")
      break 
</code></pre>

<p>In my case <code>run_test_case()</code> gives 1, 2, 3, 4 etc... But it always performs first(1) and jump to the else part. So I am getting the "I am here" message. It should not work like this. As I am using "continue", it should jump to the for loop.</p>

<p>Following is the <code>run_test_case()</code>:</p>

<pre><code>def run_test_case(job):
  for x in job:
    num_of_cases = num_of_cases - 1
    test_type = x.split('/')
    logger(log_file,"Currently "+ x +"hai!!")
    if test_type[0] == 'volume':
      backdoor = test_type[1].split("_")
      if backdoor[0] == 'backdoor':
        return get_all_nas_logs()
      else:
        if perform_volume_operations(x,num_of_cases) == False:
          return False
        else:
      logger(log_file,"wrong ha!!")
</code></pre>

<p>Why is it always going to the else part, without jumping back to the for loop? Thanks in advance.</p>
