Adding the Else Statement in QTP
Posted By Lax on March 02nd, 2009 in QTP Lessons
If the condition that you have specified in the IF statement is false, the statements following the ELSE statement are executed.
Note: The ELSE statement is optional.

To add an ELSE statement:
- In KEYWORD VIEW, select the step that contains the IF statement.
- From the QuickTest Professional menu bar, select INSERT ? CONDITIONAL STATEMENT ? ELSE. The ELSE step appears in KEYWORD VIEW.
- Define the ELSE condition.
Note: The ELSE statement is not available unless you select the step that contains the IF statement.
Similar Posts: QTP Lessons
