thread.exists

Syntax thread.exists (id)

Params id is a number whose validity as a thread id you wish to determine.

Action Scans Frontier's thread list, looking for a thread with the given id.

Returns True if a thread with the specified id exists, false otherwise.

Examples thread.exists (104)

   » true

thread.exists (999)

   » false

Notes Thread ids can be obtained from other thread verbs, or by examining the system.compiler.threads table.

See Also thread.evaluate

thread.getCurrentID

thread.getNthID

system.compiler.threads

Discuss