I am using an If statement to check if a UI Element is present in my program. If the element is present, then the program selects that UI element and continues the flow.
I want the Else statement (when the UI element is not present) to write to a CSV file as a sort of exception handling case. But after doing this write CSV function, I want the program to end.
Problem is, I am unable to stop the program from the else. It continues down the same path of the Then statement.
How can I branch out the “Then” and “Else” paths to go separate ways?