Next: , Previous: slua_tbl_el_tbl, Up: Manipulating Tables


A.2.8 slua_tbl_el_exists

determine existence of an element in a table

Synopsis

     #include <luasup/luasup.h>
     
     
     
int slua_tbl_el_exists( lua_Object table, const char *index );

Parameters

lua_Object table
the table containing the data
const char *index
the index of the element

Description

This routine checks for the existence of an element in a table.

Returns

It returns zero if the element doesn't exist, non-zero otherwise.

Author

Diab Jerius