When to use .rawValue=null or .rawValue=""

PCForm

08-02-2016

.rawValue=null

 

if(Subform1.LinesOver.rawValue!=null && Loc.rawValue!=null && Addr.rawValue!=null && TOB.rawValue!=="17" && Construction.rawValue!="1" && ProtectionClass.rawValue!=null && YrBuilt.rawValue!=null && Stories.rawValue!=null &&  bldgs.rawValue!=null && Flood.rawValue!="3" && Earthquake.rawValue!="1" && Sprinklered.rawValue!="1" && LossHistory.rawValue!=null && Total.rawValue!=null)

 

{

 

Page1Sub.Subform2.Subform5.Subform6.presence="visible";

 

}

 

else

 

{

 

Page1Sub.Subform2.Subform5.Subform6.presence="hidden";

 

}

OR

.rawValue=""

 

 

if(Subform1.LinesOver.rawValue!="" && Loc.rawValue!="" && Addr.rawValue!="" && TOB.rawValue!=="17" && Construction.rawValue!="1" && ProtectionClass.rawValue!="" && YrBuilt.rawValue!="" && Stories.rawValue!="" &&  bldgs.rawValue!="" && Flood.rawValue!="3" && Earthquake.rawValue!="1" && Sprinklered.rawValue!="1" && LossHistory.rawValue!="" && Total.rawValue!=null)

 

{

 

Page1Sub.Subform2.Subform5.Subform6.presence="visible";

 

}

 

else

 

{

 

Page1Sub.Subform2.Subform5.Subform6.presence="hidden";

 

}

 

Accepted Solutions (0)

Answers (0)