public IfCommand(IExpression condition, ICommand thenCommand, ICommand elseCommand = null) { this.condition = condition; this.thenCommand = thenCommand; this.elseCommand = elseCommand; }