question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Break out of loop' does not work

See original GitHub issue

Describe the bug

I am trying to stop a loop with the ‘Break out of loop’ action using a condition. But the loop doesn’t stop.

Version

Version: 2.1.2 Electron: 8.2.4 Chrome: 80.0.3987.165 NodeJS: 12.13.0 V8: 8.0.426.27-electron.0

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Add an ‘Loop: For each item’ action
  2. Add an ‘Branch: if/else’ action inside the loop
  3. Add an ‘Break out of loop’ action inside the condition
  4. See error

Expected behavior

The loop is expected to stop

Screenshots

image image

Additional context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ramfattahcommented, Feb 25, 2022

There is a pull-request for this issue. https://github.com/microsoft/botbuilder-dotnet/pull/6223

Thank you @EricDahlvang for the PR!

0reactions
EricDahlvangcommented, Jun 7, 2022

Are you able to provide a small repro? A basic example seems to be working as expected:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

break statement inside a for loop not working - python
The break statements for the outer and middle loops will be executed regardless of whether the inner break has happened. In other words,...
Read more >
Python break statement: break for loops and while loops
It terminates whichever loop it's placed within, causing Python to resume whatever line of code comes after the loop. For situations that make...
Read more >
"Break out of loop" block not working
Hi, when i inserted the “break out of loop” block into my app it gave me a notification that went like this: “Internal...
Read more >
Why can't I break out of this do while loop in java?
Even though the input I type is a "Y" or "N" string, I can't break out if this while loop. Can anyone tell...
Read more >
Are there any problems with using continue or break?
The real problem are loops with too large inner bodies and many conditions for stopping them or executing only parts. Having multiple continue ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found