0
New result line in the console
How do I write a new result line in the console?
This is the code I run
let LastDate := last((select Notify) order by Data).Data;
text(LastDate);
while today() > LastDate do
LastDate := LastDate +1;
text(LastDate);
end
Actual Result
15/08/2022
Expected Result
15/08/2022
16/08/2022
17/08/2022
....
Thanks
4 replies
-
The console will only output the last returned value, so you'd need to create a variable and keep adding to it in your loop, or an array and then aggregate it as a single string. In both cases just output the variable at the end.
Appending to a string example:
let LastDate := last((select Notify) order by Data).Data; let output := text(LastDate); while today() > LastDate do LastDate := LastDate +1; output := output + " " + text(LastDate); end; output
Array example:
let LastDate := last((select Notify) order by Data).Data; let output := [text(LastDate)]; while today() > LastDate do LastDate := LastDate +1; output := array(output,[text(LastDate)]); end; join(output," ")
Both output the same result.
-
Grazie per le informazioni
Content aside
- 2 yrs agoLast active
- 4Replies
- 82Views
-
3
Following