Table of Contents

TCodeConditionStatement.Create Constructor

Overloads

TCodeConditionStatement.Create(string)

Creates a condition statement with the specified condition snippet.

Syntax

Unit: Bcl.Code.MetaClasses

constructor TCodeConditionStatement.Create(const ACondition: string);

Parameters

<-> Parameter Type Description
const ACondition string The raw condition expression text.

See also

TCodeConditionStatement.Create(TCodeExpression, TArray<TCodeStatement>)

Creates a condition statement with the specified condition and true-branch statements.

Syntax

Unit: Bcl.Code.MetaClasses

constructor TCodeConditionStatement.Create(ACondition: TCodeExpression; ATrueStatements: TArray<TCodeStatement>);

Parameters

<-> Parameter Type Description
ACondition TCodeExpression The condition expression.
ATrueStatements TArray<TCodeStatement> The statements to execute when the condition is True.

See also

TCodeConditionStatement.Create(TCodeExpression, TArray<TCodeStatement>, TArray<TCodeStatement>)

Creates a condition statement with the specified condition, true-branch, and false-branch statements.

Syntax

Unit: Bcl.Code.MetaClasses

constructor TCodeConditionStatement.Create(ACondition: TCodeExpression; ATrueStatements: TArray<TCodeStatement>; AFalseStatements: TArray<TCodeStatement>);

Parameters

<-> Parameter Type Description
ACondition TCodeExpression The condition expression.
ATrueStatements TArray<TCodeStatement> The statements to execute when the condition is True.
AFalseStatements TArray<TCodeStatement> The statements to execute when the condition is False.

See also