Forum Discussion
If it has no width property in the beginning, then width isn't = 0 and that would make it skip your false condition. You need a second check on that property that allows for it to be null or whatever will detect that non-zero condition.
- mgreen7 years agoContributor
Thanks for the response!
Yes as I'm reading it makes sense now why width == 0 wouldn't work if not exists.
By second check to detect the non-zero condition.. how would you implement that?
- Marsha_R7 years ago
Champion Level 3
I don't know your syntax so I'm guessing but it will be something like:
(!navigate.WaitAliasChild('bladeChild', 5000).Width == 0) OR (!navigate.WaitAliasChild('bladeChild', 5000).Exists)
You want to give the switch the two conditions to check at the beginning and either one is acceptable.
- mgreen7 years agoContributor
OR or || are not valid options in the case you are suggesting.