Avatar

Level 6

Yes as you guessed isNull is the magic word that does that.

Let me ask you this .....You want to calculate the value even if one of the three boxes are filled in right?

Let us change the code little bit and find out if it does what you need.....use the following to see it meets your requirement.

if (!box1.isNull || !box2.isNull || !box3.isNull) {

     this.rawValue = (box1.rawValue + box2.rawValue + box3.rawValue) * 1.5;

}