IfFunction
Implements the IF function, which evaluates a logical condition and returns one value when TRUE and another when FALSE.
Definition
Namespace:Telerik.Documents.Spreadsheet.Expressions.Functions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class IfFunction : FunctionBase
Inheritance: objectFunctionBaseIfFunction
Inherited Members
Constructors
Initializes a new IF function instance for conditional branching based on boolean evaluation.
public IfFunction()
Fields
The name of the function.
public static readonly string FunctionName
Properties
Gets the rules controlling how arguments are converted before evaluation.
public override ArgumentConversionRules ArgumentConversionRules { get; }
The argument conversion rules as ArgumentConversionRules.
Overrides:
Gets metadata describing the function's category, description, and argument structure.
public override FunctionInfo FunctionInfo { get; }
The function info as FunctionInfo.
Overrides:
When true, FunctionBase automatically evaluates this function element-wise over any multi-element array argument and returns a spilled array result. Override to true in pure scalar functions (e.g. ABS, LEN, MOD) where applying the function independently to each element of an input array is the correct dynamic-array behavior. Leave false (the default) for reducers.
public override bool LiftsOverArrays { get; }
Overrides:
Methods
Evaluates the function by testing the logical condition and returning the corresponding true-branch or false-branch value. When the condition evaluates to an ArrayExpression, the function applies element-wise IF and returns an array.
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<RadExpression> context)
The context.
Returns:Function result as RadExpression.
Overrides: