title: How to jump out of the outer loop if inner' for 'loop is executed in lua
body: <pre><code>S = 'MSH, mdmOBX, TXA'
  for u in string.gmatch(S, "([^,%s]+)"),1 do
      l[k] = u
      for a in string.gmatch(u,'.-([A-Z].*)'),1 do       
          g[z] = a
          print(g)
          _G["Map"..l[k]](Msg[g[z]],R[1])
      end
      _G["Map"..l[k]](Msg[l[k]],R[1])     
  end
  </code></pre>
  
  <p>I have above code, I want statement outside of inner loop to be executed only if inner for loop is not executed, I tried using 'break' keyword but that did not work and control was passed to outerloop .how to fix this?</p>