DEMO 1: A conditional is a piece of code that tells your program to do a group of commands if something is true.

There are four parts to a conditional.

  • Click Run to see the if statement and learn how it works!
  • When finished, click Submit and Next to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)