Suppose in my process model, I want to calculate a value and save it into process models var1, var2 and var3.

Currently, I have used a script task to calculate this value three times, as input1, input2 and input3, then saving them respectively into var1, var2, var3.

Is there a nicer way to do this? I would have expected to be able to calculate the value once for input 1, and then save into variables var1, var2, var3 immediately.