If there are multiple values that need to be shared, or if it is a string, or an array, etc. it would be cumbersome to add mulitple sliders.
I often use (hidden) text-layers for this. The sourceText expression would have some calculations and yield a JSON object, other expressions will parse that JSON object fromt he sourceText and get the properties they need.
for example, sourceText of layer “globaltxt”:
globals = {};
globals.a= Math.sqrt(time);
globals.pos = [Math.random(100,100), globals.a*5];
globals.description = time < 2 ? "hello" : "goodbye";
JSON.stringify(globals);
in other expressions:
globals = JSON.parse(thisComp.layer("globaltxt").text.sourceText.value);
globals.description + " " + globals.a;