In dispatch, you can't do some complex calculation such as Sum=A+B+C+D
But you can set several variables to do this :
Variable B=Variable A + C
Varialbe C=Varialbe B + D
Be patient when using dispatch.
I thought that may be the answer. I found another way of achieving what I want , not quite as robust as a number sequencing logic but it gets the job done.