IfStatement Class
From The Oxygene Language Wiki
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
| | |
|---|---|
| constructor(aCondition: Value; aTrueStatement, aFalseStatement: Statement) | Initialize a new statement |
| constructor | Initialize an empty if statement |
Properties
| | |
|---|---|
| Condition: Value | Condition for this if |
| FalseCode: Statement | Code to be executed when the condition is not met |
| TrueCode: Statement | Code to be executed if the condition is met |
See Also
- Cirrus
- External Links:
- Prism Aspects to Help with Monobjc Development (RemObjects Blogs)
- Statement Class
Area: Oxygene Language
Compiler version: Oxygene 5
Language Glossary — Keywords — Types — FAQ — How To