about_do.help

about_do.help - TOPIC about_Do SHORT DESCRIPTION Runs a...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 TOPIC about_Do SHORT DESCRIPTION Runs a statement list one or more times, subject to a While or Until condition. LONG DESCRIPTION The Do keyword works with the While keyword or the Until keyword to run the statements in a script block, subject to a condition. Unlike the related While loop, the script block in a Do loop always runs at least once. A Do-While loop is a variety of the While loop. In a Do-While loop, the condition is evaluated after the script block has run. As in a While loop, the script block is repeated as long as the condition evaluates to true. Like a Do-While loop, a Do-Until loop always runs at least once before the condition is evaluated. However, the script block runs only while the condition is false. The Continue and Break flow control keywords can be used in a Do-While loop or in a Do-Until loop. Syntax The following shows the syntax of the Do-While statement: do {<statement list>} while (<condition>) The following shows the syntax of the Do-Until statement:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

about_do.help - TOPIC about_Do SHORT DESCRIPTION Runs a...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online