Previous Up Next

_test_exist
Search a function/variable in the current environment. Return 1 if the function was found. It is usefull to test the presence of specific extensions (such as SQL plugin) before compiling a package referencing these functions : if you compile a package referencing missing functions, an runtime error will occur.

I _test_exist (
S _function_name_
)
Parameters

_function_name_
any name of function
Return value

1 if the function exists, 0 or nil if not.

Error :

See also _envHasFun.