Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
begin
...
continue;
...
// continue jumps here
until condition;
Exit Statement
The exit statement allows you to break out of a routine (function or procedure). It
passes the control to the first statement following the routine call.
Here is a simple example:
procedure Proc1();
var error: byte;
begin
... // we're doing something here
if error = TRUE then exit;
... // some code, which won't be executed if error is true
end;
Note: If breaking out of a function, return value will be the value of the local variable
result at the moment of exit.
173
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroPASCAL PRO for AVR
CHAPTER 5