js-code-to-svg-flowchart icon indicating copy to clipboard operation
js-code-to-svg-flowchart copied to clipboard

DO WHILE loop is not working

Open Veeramuthur opened this issue 5 years ago • 6 comments

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.

Veeramuthur avatar May 28 '20 10:05 Veeramuthur

EBAA061F-166A-4711-94A4-47DE6A904B7B

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.

Bogdan-Lyashenko avatar May 28 '20 17:05 Bogdan-Lyashenko

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.

dowhile

Veeramuthur avatar May 30 '20 17:05 Veeramuthur

DO-WHILE loop should be distinguished from WHILE loop. Hope this can be fixed in next version.

lhttjdr avatar Jan 18 '21 13:01 lhttjdr

@lhttjdr Thanks for your update

Veeramuthur avatar Mar 17 '21 03:03 Veeramuthur

I think I can fix this issue, can u assign it for me? @Bogdan-Lyashenko

826625219 avatar Nov 18 '23 08:11 826625219

Yeah, go ahead! Thx

Bogdan-Lyashenko avatar Nov 18 '23 15:11 Bogdan-Lyashenko