Detecting the presence of an object

Often you need to be able to check for the presence of an object and then depending on whether the object is visible perform one of two possible sets of operations. This article explains the recommended way of doing this.

You can use the special SeSFindObj('object name') command to perform the check:

if(SeSFindObj('Object Name'))
{
    // Object is available
}
else
{
    // Object is not available
}