ExitActionIteration Statement
Description
Exits the current iteration of the action. The pass or fail status of the action iteration remains as it was in the step prior to the ExitActionIteration statement.
Note:
The ExitActionIteration statement and its return value are displayed in the Run Results.
Using this statement overrides other end-of-iteration settings.
Syntax
ExitActionIteration[(RetVal)]
Argument | Type | Description |
---|---|---|
RetVal | Variant | Optional. The action iteration's return value. The return value is displayed in the run results. Tip: To return a value to the calling action or test, use an output parameter. |

The following example uses the ExitActionIteration function to stop running the current action iteration when the value in the current row of the City column in the action's data sheet is Paris.
CurrentCity = DataTable("City", dtLocalSheet)
If CurrentCity = "Paris" Then ExitActionIteration("Skipping Paris")
See also: