thread_exists(thread)
From ENIGMA
Description
Checks if the given thread exists and returns the result.
Parameters
Parameter | Data Type | Description |
---|---|---|
thread | integer | index of the thread |
Return Values
boolean: Returns whether or not the thread exists.
Example Call
// demonstrates checking if a thread exists or not
if (thread_exists(asyncThread)) {
// thread does exist
} else {
// thread does not exist
}
if (thread_exists(asyncThread)) {
// thread does exist
} else {
// thread does not exist
}