IfSyntax.Condition Property

Applies to TestComplete 15.46, last modified on January 09, 2023

Description

Use the Condition property to get or set the condition to be tested in the conditional statement that corresponds to the given IfSyntax syntax element. To specify the statements to be executed if the condition is True or False, use the TrueSyntax or FalseSyntax property, respectively.

Declaration

IfSyntax.Condition

Read-Write Property Variant

Applies To

The property is applied to the following object:

Property Value

The Condition property can hold one of the following values:

  • A ConditionSyntax object that corresponds to a comparison or logical expression.
  • An InvokeSyntax object that corresponds to a variable, routine, property or method expression.
  • True or False.
  • A number, string or any other “simple” value that can evaluate to True or False.
    This value must evaluate to a boolean value, and moreover, to the same value in all scripting languages that can be used in TestComplete projects. Examples of such values are the number 0, which always evaluates to False, the string "1", which evaluates to True, and so on.

See Also

TrueSyntax Property
FalseSyntax Property
ConditionSyntax Object
InvokeSyntax Object

Highlight search results