Next: slua_tbl_el_delete, Previous: slua_tbl_el_tbl, Up: Manipulating Tables
determine existence of an element in a table
#include <luasup/luasup.h>int slua_tbl_el_exists( lua_Object table, const char *index );
lua_Object table
- the table containing the data
const char *index
- the index of the element
This routine checks for the existence of an element in a table.
It returns zero if the element doesn't exist, non-zero otherwise.
Diab Jerius