I don't understand loop #5765
-
Hello, I need help understanding this code:
I see only 2 values:
Why only 2 values? And if I write this way:
I receive all the values:
Why does it work this way? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Because a report acts like another promise type, which means if it is considered as already correct it will be skipped in next identical iterations. In the case of a report, it means if a particular string has already been printed, it will not be printed again, hence only two lines. When adding the name of the parameter, all lines are unique, making all reports unique (and printed). |
Beta Was this translation helpful? Give feedback.
Because a report acts like another promise type, which means if it is considered as already correct it will be skipped in next identical iterations. In the case of a report, it means if a particular string has already been printed, it will not be printed again, hence only two lines.
When adding the name of the parameter, all lines are unique, making all reports unique (and printed).