Tao.Lua SDK Documentation

Lua.luaL_optint Method 

If the function argument narg is a number, returns this number cast to an int.

[Visual Basic]
Public Shared Function luaL_optint( _
   ByVal L As IntPtr, _
   ByVal n As Integer, _
   ByVal d As Integer _
) As Integer
[C#]
public static int luaL_optint(
   IntPtr L,
   int n,
   int d
);

Parameters

L
n
d

Return Value

If this argument is absent or is nil, returns d. Otherwise, raises an error.

See Also

Lua Class | Tao.Lua Namespace