CompareFields 1

Description:

Returns OK if the statement comparing the field value with the second field value using the operator specified is true. If the comparison fails, the field value will be displayed in red in the decode pane with the message [Operator 'Error message'].

Parameters:

[Required]

List

"Operator"


List Values

GreaterThan

GreaterThanOrEqualTo

LessThan

LessThanOrEqualTo

EqualTo

NotEqualTo

[Required]

Int64

"Second Field"


[Required]

Str

"Error message"


Example:

Field current_field (Fixed 2) (Hex) VERIFY (CompareFields LessThanOrEqualTo peek_Int "connInterval")

If the CompareFields fails then the error message [ LessThanOrEqualTo connInterval ] will be appended to the field value.