IfStatement Class

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.


[Serializable]
IfStatement = public class(Statement)

The IfStatement class represents a plain if <condition> then <statement> else <statement> statement. The compiler will eliminate the true or false branch if the value can be evaluated at compile-time in the case that branch could not be reached at runtime. For values, the IIFValue class can be used.

Namespace: Cirrus Statements


Members

Method
Description
constructor(aCondition: Value; aTrueStatement, aFalseStatement: Statement)Initialize a new statement
constructorInitialize an empty if statement


Properties

Property
Description
Condition: ValueCondition for this if
FalseCode: StatementCode to be executed when the condition is not met
TrueCode: StatementCode to be executed if the condition is met


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox