Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
I'm made a double for leep for a Mathcad sheet and I'm trying to add a variable that counts the total number of times the program loops. For example, if I have 2 for loops, both of them from 0 to two, then the total number of times the program lops is four.
Does anyone kow how to do this?
Solved! Go to Solution.
Leopoldo Vasquez wrote:
I'm made a double for leep for a Mathcad sheet and I'm trying to add a variable that counts the total number of times the program loops. For example, if I have 2 for loops, both of them from 0 to two, then the total number of times the program lops is four.
Does anyone kow how to do this?
Sure.
You could add an additional variable which is set to zero at the beginning of the program and incremented every time the "program loops".
For further help please post your worksheet.
BTW, in the example you gave, I would expect the result nine, if the loops are nested and six, if they are written one after the other, but not four (unless you change the default stepwith one, of course).
Leopoldo Vasquez wrote:
I'm made a double for leep for a Mathcad sheet and I'm trying to add a variable that counts the total number of times the program loops. For example, if I have 2 for loops, both of them from 0 to two, then the total number of times the program lops is four.
Does anyone kow how to do this?
Sure.
You could add an additional variable which is set to zero at the beginning of the program and incremented every time the "program loops".
For further help please post your worksheet.
BTW, in the example you gave, I would expect the result nine, if the loops are nested and six, if they are written one after the other, but not four (unless you change the default stepwith one, of course).
Thank you,
That's exactly what I did.