Top "Loops" questions

Loops are a type of control flow structure in programming in which a series of statements may be executed repeatedly until some condition is met.

Emulating a do-while loop in Bash

What is the best way to emulate a do-while loop in Bash? I could check for the condition before entering …

bash loops do-while
For Loop on Lua

My assignment is how to do a for loop. I have figured it out in terms of numbers but cannot …

loops for-loop lua
How do I loop through a date range?

I'm not even sure how to do this without using some horrible for loop/counter type solution. Here's the problem: …

c# asp.net datetime loops
Declaring variables inside loops, good practice or bad practice?

Question #1: Is declaring a variable inside a loop a good practice or bad practice? I've read the other threads about …

c++ loops variable-declaration
Loop through a comma-separated shell variable

Suppose I have a Unix shell variable as below variable=abc,def,ghij I want to extract all the values (…

shell loops unix for-loop cut
do { ... } while (0) — what is it good for?

Possible Duplicate: Why are there sometimes meaningless do/while and if/else statements in C/C++ macros? I've been seeing …

c loops
How to iterate through property names of Javascript object?

I would like to get the property names from a Javascript object to build a table dynamically. Example: var obj = {…

javascript loops object
Looping Over Result Sets in MySQL

I am trying to write a stored procedure in MySQL which will perform a somewhat simple select query, and then …

mysql loops stored-procedures cursor
Python : List of dict, if exists increment a dict value, if not append a new dict

I would like do something like that. list_of_urls = ['http://www.google.fr/', 'http://www.google.fr/', …

python loops list tuples
How do you Make A Repeat-Until Loop in C++?

How do you Make A Repeat-Until Loop in C++? As opposed to a standard While or For loop. I need …

c++ loops for-loop while-loop