Next: slua_tbl_el_tbl, Previous: slua_tbl_el_si, Up: Manipulating Tables
get a numeric element from a table
#include <luasup/luasup.h>int slua_tbl_el_n( lua_Object table, const char *index, double *value );
lua_Object table
- the table containing the data
const char *index
- the index of the element
double *value
- the output value of the element
retrieve the value of an element in a table. The value should be representable as a number.
It returns zero if all went well and `1' if the element didn't
exist. If the element doesn't exist, *value
is unchanged.
Diab Jerius