Top "Control-flow" questions

Control flow (or flow of control) refers to the order in which statements are evaluated or executed.

Perl Breaking out of an If statement

This one just came up: How do I break out of an if statement? I have a long if statement, …

perl if-statement break control-flow
How to run code inside a loop only once without external flag?

I want to check a condition inside a loop and execute a block of code when it's first met. After …

c++ loops design-patterns flags control-flow
How to implement a do-while loop in tsql

I'm trying to figure how to implement this in TSQL do update stuff set col = 'blah' where that_row = 'the …

sql sql-server tsql while-loop control-flow
Control flow graph & cyclomatic complexity for following procedure

insertion_procedure (int a[], int p [], int N) { int i,j,k; for (i=0; i<=N; i++) p[i] = …

c control-flow cyclomatic-complexity black-box white-box
VBA: Break Out of Deeply Nested If Statements

Typically when I want to break out of a statement I just set a boolean flag for control flow, but …

vba if-statement break control-flow nested-if
Stop execution of a script called with execfile

Is it possible to break the execution of a Python script called with the execfile function without using an if/…

python control-flow execfile
Intellij Idea hint: Condition is always false - can that be true here? (Java)

I have the following code: public String testExitPoints() { boolean myBoolean = false; try { if (getBoolean()) { return "exit 1"; } if (getBoolean()) { throw new …

java intellij-idea control-flow
How to print the next N executed lines automatically in GDB?

I have been trying to find a way for some time to automate the progress in GDB of tracing the …

dynamic gdb trace call-graph control-flow
What is a good way to exit a node.js script after "everything has been done"

My node.js script reads rows from a table in database 1, does some processing and writes the rows to database 2. …

node.js asynchronous control-flow
How do I break an outer loop from an inner one in Perl?

Suppose I have a piece of Perl code like: foreach my $x (@x) { foreach my $y (@z) { foreach my $z (@…

loops perl break control-flow