title: (glua) How to check if not var in table?
body: <p>in my case,</p>
  
  <pre><code>self.targets = {}
  for k,v in pairs(ents.findInSphere(self:GetPos()) do
  -- here, how to check if not v in self.targets?
  table.insert(self.targets,v)
  </code></pre>
  
  <p>I tried this</p>
  
  <pre><code>for o, p in pairs(self.targets) do
  if v ~= p then
  </code></pre>
  
  <p>another</p>
  
  <pre><code>if not self.targets[v]
  </code></pre>
  
  <p>can someone help me?</p>
  
  <p>I hope to check if not v in self.targets</p>
  
  <p>but I can't use this</p>
  
  <pre><code>for o, p in pairs(self.targets) do
  if v == p then continue end
  </code></pre>
  
  <p>because continue not support
  and goto not support too</p>