Knaph

Conditionals

Code that runs only when a condition is true - if, else, switch - letting a program make decisions.

Level 1 · Foundation

You can write if/else branches and predict which one runs.

Sign in to prove what you know with a short quiz, see how deep you've gone, and earn XP for it.

Sign in with Google

Levels of understanding

  1. 1

    Foundation

    You can write if/else branches and predict which one runs.

    Opens after

    Basic types
  2. 2

    Deeper

    You read a condition as a logical statement - and can simplify, negate and combine conditions correctly.

Your path here

What's still between you and Conditionals, level 1, in the order you can learn it.

  1. 1Variables in codeLevel 1 · Foundation · Programming
  2. 2Basic typesLevel 1 · Foundation · Programming
  3. 3ConditionalsLevel 1 · Foundation · Programming

Makes these deeper

Once you know Conditionals, come back to these — they'll mean more.