Description:
This method returns OK if the statement comparing the field value with a given constant using the operator specified is true. If the comparison fails, the field value will be displayed in red in the Decode pane and the expected value(s) will be displayed next to it. The optional "Output Radix" parameter specifies whether to show the expected value(s) in decimal or hex.
Parameters:
|
[Required] |
List |
"Operator" |
|
|
List Values |
GreaterThan |
||
|
GreaterThanOrEqualTo |
|||
|
LessThan |
|||
|
LessThanOrEqualTo |
|||
|
EqualTo |
|||
|
NotEqualTo |
|||
|
[Required] |
Int64 |
"Match value" |
|
|
[Optional] |
List |
"Output radix" |
Default value: AsDecimal |
|
List values: |
AsDecimal |
||
|
AsHex |
Example:
Here is a typical example taken from the IP decoder. This serves to check that the version of IP used is at least 4:
FIELD version (Fixed 4 Bits) (TABLE ver_nums) "Version" VERIFY (FieldIs GreaterThanOrEqualTo 4)