Renesas M16C PC4701 用户手册
![Renesas](https://files.manualsbrain.com/attachments/59153266feca598c11e08bf1f143ccfcf45441a4/common/fit/150/50/d3d06de51d338eb4f916b44a9629f9d48697a59cd7344be40cf24bae01c5/brand_logo.gif)
9 Writing Script Files
247
9.1.4 Loop Statement(while,endw) and Break Statement
In loop statements, execution of a group of statements is repeated while the expression is true. The
following shows the format to be used.
following shows the format to be used.
while ( expression )
statement
endw
statement
endw
•
If the expression is t rue, the group of statements is repeated. If false, the loop is exited (and the
statement following the endw statement is executed).
statement following the endw statement is executed).
•
You can nest while statements up to 32 levels.
•
Use the break statement to forcibly exit a while loop. If while statements are nested, break exits
from the inner most loop.
from the inner most loop.
9.1.5 Comment statements
You can include comments in a script file. Use the following format.
;character string
•
Write the statement after a semicolon (;). You can include only spaces and tabs in front of the
semicolon
semicolon
•
Lines with comment statements are ignored when the script file is executed.