lua_getΒΆ

lua_get uses the rawget function to return a value from the Lua table.

val = lua_get(table, index)

Return Value

val

Parameters

table

table

index

index

Comment

def lua_get(table, index)
{
    return lua_call("rawget", table, index);
}

Example

lmath = lua_require("math")
lsin = lua_get(lmath, "sin")

History

Version Description
R2016.0 New.

id-1872393