LUA_ISNONEORNIL(3) Library Functions Manual LUA_ISNONEORNIL(3)

lua_isnoneornilcheck whether a value is not valid or if the value is nil, function indicator [-0, +0, -]

#include <lua.h>

int
lua_isnoneornil(lua_State *L, int index);

() returns 1 if the given acceptable index is not valid or if the value at this index is nil, and 0 otherwise.

Returns 1 if the given acceptable index is not valid (that is, it refers to an element outside the current stack) or if the value at this index is nil, and 0 otherwise.

Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.

The lua_isnoneornil() manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.

July 14, 2022 Debian