isexecutorthread
Returns true when the current thread belongs to the executor.
Syntax
isexecutorthread() -> boolean
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
boolean | True when the current thread belongs to the executor |
Description
isexecutorthread is part of the Environment library. Environment helpers return or inspect the global, game and script environments used by the executor and the client.
The call is a predicate: it inspects the current state and returns a boolean without modifying anything.
The aliases isourthread(), is_our_thread() resolve to the same implementation.
Example
print(isexecutorthread(), isourthread())
Notes
- Aliases:
isourthread(),is_our_thread(). - Mutating a returned environment affects every script that shares it.