blob: 8fe9993ba5df6eebd2fe11577e33c0b9c8fd6b68 [file] [log] [blame]
using System.Collections.Generic;
using System.Linq;
using OfficeOpenXml.FormulaParsing.ExpressionGraph;
namespace OfficeOpenXml.FormulaParsing.Excel.Functions.Logical;
public class IfError : ExcelFunction {
public override CompileResult Execute(
IEnumerable<FunctionArgument> arguments,
ParsingContext context) {
ValidateArguments(arguments, 1);
var firstArg = arguments.First();
return GetResultByObject(firstArg.Value);
}
}