Книга: Advanced PIC Microcontroller Projects in C
6.1.5 REPEAT-UNTIL
6.1.5 REPEAT-UNTIL
REPEAT-UNTIL is another control construct used in PDL codes. In the following example the program waits until a switch value is equal to 1.
Example:
REPEAT
Turn on buzzer
Read switch value
UNTIL switch = 1
Notice that the REPEAT-UNTIL loop is always executed at least once, and more than once if the condition at the end of the loop is not met.
Оглавление статьи/книги
Похожие страницы
- until
- do ... while and do ... until
- Конструкция repeat-until
- until … do … done
- Using cron to Run Jobs Repeatedly
- The until Statement
- repeat
- Дублируемое наследование (Repeated inheritance)
- 5.3 Циклы while и until: контроль входа в систему
- Пример 10-18. Цикл until
- Пример 16-6. Перенаправление в цикл until
- 2.1.3 Repeating Commands