Available for: UI for ASP.NET MVC | UI for ASP.NET AJAX | UI for Blazor | UI for WPF | UI for WinForms | UI for Xamarin | UI for WinUI | UI for ASP.NET Core | UI for .NET MAUI

New to Telerik Document Processing? Download free 30-day trial

Compare Field

CompareField is a Field element that compares two values. It displays the result "1" if the comparison is true or "0" (zero) if the comparison is false.

Field Syntax

This is how the syntax of a compare field looks like:

Syntax
{ COMPARE Expression1 Operator Expression2 }

Expression1, Expression2

Values to compare.

Operators

In the table bellow are listed all the comparison operators.

Operator Description
= Equal to
<> Not equal to
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to

Inserting

Inserting a Compare Field is easily achieved through the RadFlowDocumentEditor's InsertField() method. It accepts code as first argument and result as second argument.

Example 1: Insert a CompareField

editor.InsertField("COMPARE MERGEFIELD CustomerNumber <> 1", "«to be updated»"); 

See Also

In this article