Resource: Property, Field : PostalCodePlus4
Description
PostalCodePlus4 must contain 4 digits.
Error Messages
1) ERROR, 'postal code plus 4' field must contain exactly 4 digits.
Fields referenced within this rule
Syntax with comments and error messages
//[ErrMsg1^ERROR, 'postal code plus 4' field must contain exactly 4 digits.|LogicBlk1^TRUE|LogicBlk2^FALSE]
// If entry is not empty and entry has changed...
IIF((/*[LogicBlk1]*/(.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),
// Then check that the entry contains exactly 4 digits.
(/*[LogicBlk2]*/MATCH('^\d{4}$',.ENTRY.)),
// Else accept if entry is empty.
.ENTRY. = .EMPTY.) / / MATCH('^\d{4}$',.ENTRY.).OR.(.ENTRY. = .EMPTY.).OR.(.ENTRY. = .OLDVALUE.)
Syntax only
IIF(((.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),(MATCH('^\d{4}$',.ENTRY.)),.ENTRY. = .EMPTY.) / / MATCH('^\d{4}$',.ENTRY.).OR.(.ENTRY. = .EMPTY.).OR.(.ENTRY. = .OLDVALUE.)
Rule Unique ID
b27fdf68-f334-4be7-8dd6-ba7d0547478c
Rule Number
172