Structure

The simplest conditional statement that we can write is the if statement. It consists of two parts:

  1. The condition
  2. The code to be executed

Get hands-on with 1400+ tech skills courses.