Resource: Property, Field : BathroomsFull
Description
BathroomsFull is required if other bathroom fields are empty. BathroomsFull is not required for Boat Slip or Deeded Parking.
Error Messages
1) ERROR, the property type and sub-type is valid and all other types of bathrooms are empty, indicate that the field is required.
2) ERROR, the property type and sub-type is valid and update type is 'change' and all old bathroom values are empty, indicate that the field is required.
Fields referenced within this rule
BathroomsFull
BathroomsHalf
BathroomsOneQuarter
BathroomsThreeQuarter
PropertySubType
PropertyType
Syntax with comments and error messages
//[ErrMsg1^ERROR, the property type and sub-type is valid and all other types of bathrooms are empty, indicate that the field is required.|LogicBlk1^TRUE|LogicBlk2^TRUE|LogicBlk4^TRUE]
//[ErrMsg2^ERROR, the property type and sub-type is valid and update type is 'change' and all old bathroom values are empty, indicate that the field is required.|LogicBlk1^TRUE|LogicBlk3^TRUE|LogicBlk4^TRUE]
// Property type is 'residential', 'residential lease', or 'manufactured in park' and...
(/*[LogicBlk1]*/PropertyType.IN.('Resi','Rlse','Manu')).AND.
// all other types of bathrooms are empty or...
(/*[LogicBlk2]*/.NOT.((BathroomsHalf != .EMPTY.).OR.(BathroomsOneQuarter != .EMPTY.).OR.(BathroomsThreeQuarter != .EMPTY.)).OR.
// the update action is 'change' and the last entry value is empty and other bathroom types are empty and...
(/*[LogicBlk3]*/(.UPDATEACTION..IN.('Change')).AND.((.OLDVALUE. = .EMPTY.).AND.(LASTBathroomsThreeQuarter = .EMPTY.).AND.(LASTBathroomsHalf = .EMPTY.).AND.(LASTBathroomsOneQuarter = .EMPTY.)))).AND.
// the property sub-type is not of type 'boat slip' or 'deeded parking' and the entry is empty.
(/*[LogicBlk4]*/(.NOT.(PropertySubType.IN.('BSLP','DDPK'))).AND.(.ENTRY. = .EMPTY.))
Syntax only
(PropertyType.IN.('Resi','Rlse','Manu')).AND.(.NOT.((BathroomsHalf != .EMPTY.).OR.(BathroomsOneQuarter != .EMPTY.).OR.(BathroomsThreeQuarter != .EMPTY.)).OR.((.UPDATEACTION..IN.('Change')).AND.((.OLDVALUE. = .EMPTY.).AND.(LASTBathroomsThreeQuarter = .EMPTY.).AND.(LASTBathroomsHalf = .EMPTY.).AND.(LASTBathroomsOneQuarter = .EMPTY.)))).AND.((.NOT.(PropertySubType.IN.('BSLP','DDPK'))).AND.(.ENTRY. = .EMPTY.))
Rule Unique ID
72243b14-5e52-4c9f-ba4e-fda64b0a9c3b
Rule Number
13