Skip to content

Detecting the presence of an object

Often, you need to check for the presence of an object and then, depending on its visibility, perform one of two possible sets of operations. This article explains the recommended way to do this.

You can use the Global.DoWaitFor('object id') command to perform the check:

if(Global.DoWaitFor('Object ID'))
{
    // Object is available
}
else
{
    // Object is not available
}

See Also