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.
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_R5 years agoChampion 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.
- mgreen5 years agoContributor
OR or || are not valid options in the case you are suggesting.
- Marsha_R5 years agoChampion Level 3
Like I said, I don't know your syntax.
You want to be able to have either one of those conditions be true for the true part of the switch. If you can't embed it in the switch, then use an if statement to test the condition and set a variable to true/false from that and then use the variable for the switch.
Related Content
- 8 months agoMehwishDaud
- 5 years agokate123
- 10 months agolodecesa
Recent Discussions
- 7 minutes agoSvetaG