ACCEPT

Resource: Property, Field : PostalCode

Description

PostalCode must be a valid value.

Error Messages

1) ERROR, 'postal code' field must contain exactly 5 digits.

Fields referenced within this rule

PostalCode 

Syntax with comments and error messages

//[ErrMsg1^ERROR, 'postal code' field must contain exactly 5 digits.|LogicBlk1^TRUE|LogicBlk2^FALSE]
// If entry is not empty and has changed...
IIF((/*[LogicBlk1]*/(.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),
// Then check that the entry contains exactly 5 digits.
(/*[LogicBlk2]*/MATCH('^\d{5}$',.ENTRY.)),
// Else accept entry if empty.
.ENTRY. = .EMPTY.) /  / MATCH('^\d{5}$',.ENTRY.).OR.(.ENTRY. = .EMPTY.).OR.(.ENTRY. = .OLDVALUE.)

Syntax only

IIF(((.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),(MATCH('^\d{5}$',.ENTRY.)),.ENTRY. = .EMPTY.) /  / MATCH('^\d{5}$',.ENTRY.).OR.(.ENTRY. = .EMPTY.).OR.(.ENTRY. = .OLDVALUE.)

Rule Unique ID

73a928c3-a95c-40b8-97e1-8f358e21b6b2

Rule Number

171