lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Philip Plumlee wrote:

Lua d00dz:

(Don't worry - I otherwise never use "leet".)

Some builds have a function, and some don't.

How do I query into the global namespace to learn if a given function
exists?

simple:

if you want to test for myfunction just do this:

if myfunction then
 print("It exists!!")
end

/Erik