Step.Precondition

Syntax

Step.Precondition

Data Type

String

Purpose

Specifies an expression that must evaluate to True or be empty to execute the step.

Remarks

This string is an expression with a Boolean result. Use the AnyOf() and AllOf() expression functions to specify more than one expression. The following is an example of an expression for a precondition based on the results of another step:

RunState.Sequence.Main["NameOfAnotherStep"].Result.Status == "Passed"

See Also

Engine.DisplayPreconditionDialog

Step.EvalPrecondForInteractiveExecution