Operator Property
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.asTextControl. WinForms. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets and sets the comparison operator the field.
Syntax
public IfField.RelationalOperator Operator { get; set; }Public Property [Operator] As IfField.RelationalOperatorMembers
| Value | Description |
|---|---|
| Equals | The expression values must be equal. |
| NotEqual | The expression values must be not equal. |
| LessThan | Expression 1 is less than expression 2. |
| GreaterThan | Expression 1 is greater than expression 2. |
| GreaterThanOrEqualTo | Expression 1 is greater than or equal to expression 2. |
| LessThanOrEqualTo | Expression 1 is less than or equal to expression 2. |
Examples
The following example uses NextIfField.Operator to configure operator as part of the next if field workflow. The configured value is checked before the workflow continues.
nextIfField.Operator = TXTextControl.DocumentServer.Fields.IfField.RelationalOperator.Equals;
Console.WriteLine($"Operator used by Next If Field: {nextIfField.Operator}");nextIfField.Operator = TXTextControl.DocumentServer.Fields.IfField.RelationalOperator.Equals
Console.WriteLine($"Operator used by Next If Field: {nextIfField.Operator}")