If you want Null 1 to move based on the relative movement of the other nulls, the other nulls need reference points. One way to do it is to keyframe their movement and Null 1 can take on movement of the other nulls that has occurred since time = 0. That would look something like this:
n2 = thisComp.layer("Null 2");
n3 = thisComp.layer("Null 3");
n4 = thisComp.layer("Null 4");
includeN2 = effect("Checkbox Control")("Checkbox") == 1;
d2 = n2.position - n2.position.valueAtTime(0);
d3 = n3.position - n3.position.valueAtTime(0);
d4 = n4.position - n4.position.valueAtTime(0);
val = value + d3 + d4;
if (includeN2) val += d2;
val
Null 2’s movement only gets included if the checkbox is on. If you want to animate the checkbox, that’s a much more complicated proposition…