thread_exists(thread)

From ENIGMA

(Difference between revisions)
Jump to: navigation, search
(Created page with "{{FuncTitle|thread_exists|thread}} == Description == Checks if the given thread exists and returns the result. == Parameters == {| class="funcpars" ! Parameter !! Data Type !! D...")
m
 
Line 16: Line 16:
<syntaxhighlight lang="edl">
<syntaxhighlight lang="edl">
// demonstrates checking if a thread exists or not
// demonstrates checking if a thread exists or not
-
if (thread_exists(asynchthread) {
+
if (thread_exists(asyncThread)) {
   // thread does exist
   // thread does exist
} else {
} else {

Latest revision as of 18:16, 25 August 2014

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
}
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox