Thanks for the reply
It is hard to explain, but what im looking for is a general solution to storing/defining a formula at a certain point, that contains variables, and using that formula afterwards, with the updated values of the variables. Its not a specific rewrite of my actual example, that will give the outcome im looking for in this particular example. Its a way to store a formula containing variables at one point, and using that formula dynamically afterwards with the variables still beign variables.
To refer to my example, I need to store the content of FormulaText as
and not as
or
In my example I only had 2 different cases, but in my actual setup (which is huge and I cant post that here), that number differs based on different things, and the formulas could also differ. I have like 100+ different cases and 200+ different formulas.
So when constructing the formulas based on cases and other things, the cases in my actual setup could look like below, which makes and a specific rewrite for each case out of the question (FormulaText called FormulaShell in my actual setup). Difficult not to cludder my original question, without giving examples of my actual setup, thats why I tried a simple setup that would illustrate the predicament. But to give a few examples this is some of the cases in my code, where those formulas hold variables and I need to "store" those formulas at a certain point and use them later, with the updated values of the included variables. The below is just bits and parts of my actual setup, so no need to go into details in this code
Bookmarks