2.6.2 Simple Logic Check Examples
These examples illustrate the use of the simple logic rule facility:
Check Required | Actual Expression Used |
Field VALUE must be greater than zero |
#VALUE > 0 |
Field STATE must be NSW, VIC or QLD. |
(#STATE = NSW) OR (#STATE = VIC) (#STATE = QLD) |
Field WEIGHT must be zero if field MEASUR is not zero. |
(#MEASUR ^= 0) AND (#WEIGHT = 0) |
Field WEIGHT must be less than field MEASUR multiplied by 10.462 |
#WEIGHT < (#MEASUR * 10.462) |