12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FlowControlConditional StatementThe forms of the conditional statement areif ( expression ) statementif ( expression ) statement else statementThe expression is evaluated in both cases. If nonzero, the first statement is executed.In the second form, if expression is zero, the second statement is executed.Each else is always matched with the last else-less if within the same statementblock.While StatementThe form for the while statement iswhile ( expression ) statementThe expression is evaluated and the statement executed until expression is zero.For StatementThe for statement comes in two forms. The first isfor ( expression 1; expression 2; expression 3) statementThe flow expressed in this statement can be thought of asexpression 1while ( expression 2) {statementexpression 3}Any of the expressions can be missing. Amissing expression 2is equivalent towhile ( 1 )62 REFERENCE MANUAL INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!