Posted By


traeregan on 07/05/09

Tagged


Statistics


Viewed 110 times
Favorited by 1 user(s)

in_table / in_array


/ Published in: Lua
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function in_table ( e, t )
  2. for _,v in pairs(t) do
  3. if (v==e) then return true end
  4. end
  5. return false
  6. end

URL: http://luanet.net/lua/in_table

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.