Get a value from a table.
First, the given key is looked up, if this fails, the value at the given position is looked up, and if this also fails, the default value is returned. Positional addressing is only valid, as long, as no value was provided by an explicit key in the list before the entry in question.
Retrieve a single precision real value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=single_k), | intent(out) | :: | val |
Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode |
Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L |
Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle |
Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key |
Name of the entry to look for. |
|
integer, | intent(in), | optional | :: | pos |
Position of the entry to look for in the table. |
|
real(kind=single_k), | intent(in), | optional | :: | default |
Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a double precision real value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=double_k), | intent(out) | :: | val |
Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode |
Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L |
Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle |
Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key |
Name of the entry to look for. |
|
integer, | intent(in), | optional | :: | pos |
Position of the entry to look for in the table. |
|
real(kind=double_k), | intent(in), | optional | :: | default |
Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a default integer value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_k), | intent(out) | :: | val |
Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode |
Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L |
Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle |
Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key |
Name of the entry to look for. |
|
integer, | intent(in), | optional | :: | pos |
Position of the entry to look for in the table. |
|
integer(kind=int_k), | intent(in), | optional | :: | default |
Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a long integer value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(out) | :: | val |
Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode |
Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L |
Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle |
Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key |
Name of the entry to look for. |
|
integer, | intent(in), | optional | :: | pos |
Position of the entry to look for in the table. |
|
integer(kind=long_k), | intent(in), | optional | :: | default |
Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a string from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*) | :: | val |
Value of the table entry if it exists. |
|||
integer, | intent(out) | :: | ErrCode |
Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L |
Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle |
Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key |
Name of the entry to look for. |
|
integer, | intent(in), | optional | :: | pos |
Position of the entry to look for in the table. |
|
character(len=*), | intent(in), | optional | :: | default |
Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a logical value from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(out) | :: | val |
Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode |
Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L |
Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle |
Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key |
Name of the entry to look for. |
|
integer, | intent(in), | optional | :: | pos |
Position of the entry to look for in the table. |
|
logical, | intent(in), | optional | :: | default |
Some default value, that should be used, if the variable is not set in the Lua script. |
Retrieve a userdata value (generic C pointer) from a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(out) | :: | val |
Value of the table entry if it exists. |
||
integer, | intent(out) | :: | ErrCode |
Error code to indicate what kind of problem might have occured. |
||
type(flu_State) | :: | L |
Handle to the Lua script. |
|||
integer, | intent(in), | optional | :: | thandle |
Handle to the table to look the value up in. |
|
character(len=*), | intent(in), | optional | :: | key |
Name of the entry to look for. |
|
integer, | intent(in), | optional | :: | pos |
Position of the entry to look for in the table. |
|
type(c_ptr), | intent(in), | optional | :: | default |
Some default value, that should be used, if the variable is not set in the Lua script. |