ScriptObjectExists

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
<Object> exists
Associationscom.livecode.engine
Summary

Tests the existence of a script object.

Parameters
NameTypeDescription
Object

An expression that evaluates to a ScriptObject.

Example
variable tObject as ScriptObject
resolve script object "card 5 of this stack"
put the result into tObject
if tObject exists then
	set property "name" of tObject to "Card5"
else
	log "No such card"
end if
Values
NameTypeDescription
The result

True if the object Object exists, and false otherwise.

RelatedStatement: ResolveScriptObject
Description

Use to test the existence or otherwise of a script object, for example after attempting to resolve the object from a string using ResolveScriptObject | resolve script object

Tagsengine,script engine