Syntax
checkcaller(): booleanReturns
| Name | Type | Description |
|---|---|---|
isCaller | boolean | True when the call comes from executor-owned code. |
Description
Returns whether the current call originated from executor-owned code.
Call it without parameters. The function reads the needed context from the current runtime state.
It returns isCaller (boolean). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Example call with placeholder values.
local result = checkcaller()
print(result)