How to use object.exists to check an item

Last edited on

You are looking for a way to check if an object exists

The waitForObject() and waitForObjectItem() functions return references to particular objects. However, sometimes we only need to know whether an object exists and don’t need to refer to it even if it does. For this purpose we can use the object.exists() function.