whuang
6 years agoRegular Contributor
Using Exists method in a if statement
Hello,
I have a if statement that checkes whether an object exists, if the object_A exists then set it as a wrapper, if object_A doesn't exist, then Object_B will exist for sure, so then set ob...
- 6 years ago
whuang wrote:
Is there any method I can use to check and switch to object_B if A is not found without waiting?
No, but you can limit the wait time by using a WaitNNN with a very short timeout e.g
Object_A = Object_A_Parent.WaitAliasChild("Object_A",100);
This of course assumes that Object_A_Parent exists...