| Designers > K2 Designer for Visual Studio > Design Tools > Toolbox > Working with Rules > Preceding Rule > Line Rule Operators | Send feedback |
The comparison operator is used to compare two values to achieve a result of TRUE or FALSE
| Operators | |
|---|---|
|
= |
Equal to |
|
> |
Greater than |
|
< |
Less than |
|
>= |
Greater than or equal to |
|
<= |
Less than or equal to |
|
<> |
not equal |
Boolean operators evaluate the outcome to determine if the expression evaluates to TRUE OR FALSE.
![]() |
Boolean operators can only evaluate two states i.e. 1 or 0 (Binary logic). They do not evaluate Text or numerical values. It is advisable to only compare binary fields with other binary fields. |
|
Boolean Operators (A=First Parameter; B Second Parameter; Q = Result) |
||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
And |
The And operator requires that all input parameters be Valid for a True result.
|
|||||||||||||||
|
Or |
The OR Operator requires that any parameter be valid for a True result.
|
|||||||||||||||
|
XOR |
The XOR operator requires that one input parameter be valid for a True result. Where all input parameters are valid or all are not valid the output will be false
|
|||||||||||||||