if constructs for making decisions

if constructs allow the code to respond to changes in the program. In a microcontroller application, the change can be caused by a increase or decrease in a sensor reading, the pressing of a button or rotation of a control knob, or it can be due to the passing of time. These and other changes in operating state

Table of contents

  1. Simple if construct
  2. if-else construct
  3. if-else if construct

Simple if construct

if-else construct

if-else if construct