Forum Discussion
If I right click and I select Insert New Opeartion I see Else condition but it has a red X on it.WhenI run the test it is catchinga n exception at that line.
Attaching teh screenshot again with Else clause added.
The earlier script (Before adding else) was works fine if the object "YES "is existing but it stops and does not execute when object "YES" is not existing.
Adding the file again with Else screenshot
The red x on else is expected... it's simply the icon to use for the "Else" operation. You should outdent that else to be on the same level as your initial if-then and then move your operations you want to execute within the Else statement.
- TanyaYatskovska7 years ago
Alumni
Hi All,
Thanks for the help, Robert.
saranoor, do the suggestion given here help you resolve the issue? What was the solution?