2 6 2 Simple Logic Check Examples

LANSA Technical

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 
or
#VALUE *GT 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)
or
(#MEASUR *NE 0) *AND (#WEIGHT *EQ 0)

Field WEIGHT must be less than field MEASUR multiplied by 10.462

#WEIGHT < (#MEASUR * 10.462)
or
#WEIGHT *LT (#MEASUR * 10.462)

 

 

Ý 2.6 Simple Logic Check