Else Operation

Applies to TestComplete 15.20, last modified on January 19, 2022

Description

To perform conditional execution of operations (that is, to run a operation only if some specific condition is met), you use the If... Then operation. The Else operation is used to execute the operations when the If... Then’s condition evaluates to False.

Requirements

The Else operation must be preceded by the If... Then operation and must be located at the same level:

Operation Result

The operation does not return any value.

Scripting Analogue

The Else operation is analogue to the else statement of JavaScript, VBScript, Delphi, C++ and other programming languages.

Child Operations

The Else operation can have any other operations as children.

For information on how to make an operation a child of another operation, see the description of the Keyword Test editor’s Test Steps page.

Operation Parameters

The operation does not have parameters.

See Also

Statements Category
If... Then Operation

Highlight search results