js-code-to-svg-flowchart
js-code-to-svg-flowchart copied to clipboard
DO WHILE loop is not working
Hi @Bogdan-Lyashenko
I have simple do while loop. i am trying to generate the chart,that chart i am not able see the 'do'.
function Recorder() { var i = 1; do { i++; console.log(i); } while(i<=10); {
} }
Please help me solve this. Thanks.

Hi, I think it’s a feature, not a bug :) it displays loop body correctly - repeat until condition applies. How would you like “do” to be displayed on flow chart? Thanks.
Hi @Bogdan-Lyashenko
Thanks for quick update.whatever you give perfectly fine for while loop.Do while before checking the condition we have to show do statement.

DO-WHILE loop should be distinguished from WHILE loop. Hope this can be fixed in next version.
@lhttjdr Thanks for your update
I think I can fix this issue, can u assign it for me? @Bogdan-Lyashenko
Yeah, go ahead! Thx