Class Else
- Namespace
- BOOSE
- Assembly
- BOOSE.dll
An Else is like an Endif but it pops the corresponding If off the stack and pushes itself on so that it becomes the corresponding command to the end
public class Else : CompoundCommand, ICommand
- Inheritance
-
Else
- Implements
- Inherited Members
Constructors
Else()
public Else()
Properties
CorrespondingEnd
public End CorrespondingEnd { get; set; }
Property Value
Methods
CheckParameters(string[])
Does nothing in this case.
public override void CheckParameters(string[] parameter)
Parameters
parameter
string[]
Compile()
Override base.compile() because a variable always has variable = expression and this is just expression.
public override void Compile()
Exceptions
Execute()
Called when program is executed. Determines if condition is true or false. If false then jumps to corrensponding "end" command.
public override void Execute()