Книга: Advanced PIC Microcontroller Projects in C

6.1.3 IF-THEN-ELSE-ENDIF

6.1.3 IF-THEN-ELSE-ENDIF

Use IF, THEN, ELSE, and ENDIF keywords to describe the flow of control in a program.

Example:

IF switch = 1 THEN
 Turn on LED 1
ELSE
 Turn on LED 2
 Start the motor
ENDIF


Генерация: 1.353. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз