Rev | Line | |
---|
[12074] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using OfficeOpenXml.FormulaParsing.ExpressionGraph;
|
---|
| 6 |
|
---|
| 7 | namespace OfficeOpenXml.FormulaParsing.Excel.Functions.Information
|
---|
| 8 | {
|
---|
| 9 | public class IsLogical : ExcelFunction
|
---|
| 10 | {
|
---|
| 11 | public override CompileResult Execute(IEnumerable<FunctionArgument> arguments, ParsingContext context)
|
---|
| 12 | {
|
---|
| 13 | var functionArguments = arguments as FunctionArgument[] ?? arguments.ToArray();
|
---|
| 14 | ValidateArguments(functionArguments, 1);
|
---|
| 15 | var v = GetFirstValue(arguments);
|
---|
| 16 | return CreateResult(v is bool, DataType.Boolean);
|
---|
| 17 | }
|
---|
| 18 | }
|
---|
| 19 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.