4

Closed

SA1500 Do-While Loop

description

SA 1500 prevents the normal construction of a Do-While loop:
Do
{
// multiple lines of code
} While (condition);
Closed Aug 1, 2013 at 2:41 PM by andyr

comments

andyr wrote Aug 1, 2013 at 2:40 PM

This is correct.
It should be:

do
{
// multiple lines of code

}
while (condition)

With the while on a separate line to the curly bracket