New to Telerik Document Processing? Start a free 30-day trial

IsEven

Class

Tests whether a number is even and returns TRUE for even numbers, FALSE for odd numbers.

Definition

Constructors

Initializes a new ISEVEN function instance for testing whether numbers are even.

C#
public IsEven()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

Gets conversion rules that control how arguments are coerced to numbers, excluding booleans.

C#
public override ArgumentConversionRules ArgumentConversionRules { get; }
Property Value:

The argument conversion rules as ArgumentConversionRules.

Overrides: NumbersInFunction.ArgumentConversionRules

Gets metadata describing the function's category, parameters, and localization keys.

C#
public override FunctionInfo FunctionInfo { get; }
Property Value:

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

Gets the function name identifier used in formulas.

C#
public override string Name { get; }
Property Value:

The name as String.

Overrides: FunctionBase.Name

Methods

Evaluates the function by testing if the number modulo 2 equals 0 and returns the boolean result.

C#
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<double> context)
Parameters:contextFunctionEvaluationContext<double>

The context.

Returns:

RadExpression

Functions result as RadExpression.

Overrides: FunctionWithSameTypeArguments<double>.EvaluateOverride(FunctionEvaluationContext<double>)