Jiki
AboutPremiumTestimonials
LoginSign Up
All Concepts›Conditionals

Conditionals

If Statements
Using the `if` keyword to run a block of code only when some condition is true, like a bouncer letting people through.
Else
Adding an `else` clause after an `if` so a different block of code runs when the condition turns out to be false.
Else If
Chaining `else if` clauses to check several conditions in order, running only the first block whose condition is true.
The `and` keyword
Combining two conditions with `&&` so the whole condition is only true when both parts are true.
The `or` keyword
Combining two conditions with `||` so the whole condition is true when at least one of the parts is true.
Remainder
Using the `%` operator to get what's left over after division, often used to check if a number is even or odd.
The `not` operator
Using `!` to flip a boolean: true becomes false and false becomes true, useful for toggling or inverting checks.
Using State
Combining if statements with variables that change over time so your program reacts and behaves differently as it runs.

Ready to Start Your Coding Journey?

Join thousands of learners on Jiki.
Practice coding exercises, get feedback from mentors, and level up your skills — it's free!

Sign Up to Jiki

About

About JikiTestimonialsOur teamJiki PremiumRoadmap

Legal

Terms of usagePrivacy policyCookie policyCode of conductAccessibility statement

Keep in Touch

Jiki's blogJiki's YouTube ChannelReport abuseSitemap

Get Help

Help CenterFAQsContact usSite Status
© 2026 Jiki Ltd