Concatanate - Two For loop -
After this loop1 I need other one loop, how can I do that.
15 replies
-
Loops can be arranged one after another, or nested one inside another. It all depends on your use case.
-
Do you want the 2nd loop to run regardless of the if statement? Then it would look something like:
I would think that you should rename the 2nd loop variable to loop2 so as not to get confused about which loop you are in.
Remember to close a function you have to put a “;” at the end. Then you can start another.
-
For some reason I didn't see the very end of the code.
1) Please turn on line numbers when you Add Code Block. Click on the gear icon when editing the code and put a check next to line number.
2) You need a 2nd if statement for loop2. You have an else but no if to start it.
3) or you put the 2nd loop into the first else.
-
Not checked but this should work. Notice how much shorter this format is...
Regards John
-
The new Script editor is not yet available to IOS and Android tablet.
We have already added this to our feature request list.
Kind regards,
-
I’m talking about adding line numbers in the forum not the app.
-
John Halls
Fred
Hi again, The First Graph I generate with a loop is the Baseline Cost Curve (Alone), the second is the same generate with a one loop, I have 3 Curve the Baseline Cost Curve, plus the Earned Curve and the Actual Cost, these last two Curve need two finish on Date of CutOff Date 13May.
I try two combine two loop1 one for only Baseline (with all weeks 9 ) and second loop2 for the other two Curve with the only cutoff date (in these case only only 6 Weeks).
There are some way two combine these two loop to generate the Curve.
And please sorry but is complicated generate this last two Curve.
I need represent the Curve like the last Graph.
If this is not posible, I will not wasted any more time.
-
Can you post the code you are working from?
-
Charts are not my thing so I don't think I can help out too much.
I tried creating a formula that does something similar where you create the records in a table then use the same table to populate another table and was able to do it without creating a doubling the 2nd set.
Rafael said:
I try to generate the the other two Curve (I use only the weeks I cutoff) but double the result.I'm not sure I follow you here. What do you mean by double the results? In which table?
-
Fred
With that Code I generate the 3 Curves (Plan, Earned and Cost)
The Plan is OK, the Earned and Cost is ok útil 13 May, finish here the next cutoff day New values appear.
Thank Fred the best to close this here, generate this curve in Ninox is very complicated in excel I take a minute without problem.
Thank a lot for yor time with that.
Content aside
- Status Answered
- 2 yrs agoSat, June 4, 2022 at 8:27 AM UTCLast active
- 15Replies
- 127Views
-
3
Following