2 10 1 Examples

LANSA for i

2.10.1 Examples

These examples illustrate the use of the simple logic rule facility:

Check Required

 

Actual Expression Used

Field VALUE must be greater than zero

 

or

#VALUE > 0 

#VALUE *GT 0

Field STATE must be NSW, VIC or QLD.

 

or

(#STATE = NSW) OR (#STATE = VIC)

(#STATE = QLD)

Field WEIGHT must be zero if field MEASUR is not zero.

 

or

(#MEASUR ^= 0) AND (#WEIGHT = 0)

(#MEASUR *NE 0) *AND (#WEIGHT *EQ 0)

Field WEIGHT must be less than field MEASUR multiplied by 10.462

 

or

#WEIGHT < (#MEASUR * 10.462)

#WEIGHT *LT (#MEASUR * 10.462)