Tao.Lua SDK Documentation

Lua.luaL_optinteger Method 

If the function argument narg is a number, returns this number cast to a lua_Integer. If this argument is absent or is nil, returns d. Otherwise, raises an error.

[Visual Basic]
Public Shared Function luaL_optinteger( _
   ByVal L As IntPtr, _
   ByVal nArg As Integer, _
   ByVal def As Integer _
) As Integer
[C#]
public static int luaL_optinteger(
   IntPtr L,
   int nArg,
   int def
);

Parameters

L
nArg
def

Return Value

See Also

Lua Class | Tao.Lua Namespace