Rullst AcademyRullst Academy/Lesson
My first quiz with Rullst · Lesson 06 / 08

If it's right... and if we try again?

A good game helps when we're right and when we're still discovering the answer.

Learning paths5 min

Let's discover together

  1. 1

    A condition is a question with only two answers: yes or no. “Was it correct?” is a condition.

  2. 2

    If it's correct, we celebrate. Otherwise, we give another chance. In Rust, we use if and else for these two choices.

  3. 3

    A helpful message explains what happened without embarrassing the learner. Mistakes are part of practice.

✦
YOUR MISSION

Choose one message for a correct answer and another for an incorrect answer.

Now it's your turn

✓

…

↻

…

A moment to understand

Complete both parts of the rule.

I need a hint

For “If correct”, choose “You did it!”. For the other, choose “Try again”.

Loading your journey…

Take it with you

A door is open or closed. What message would you show in each case?

Show me the Rust behind it

This part is optional. You don't need to memorize the code to continue.

if answer == correct_answer {
    success_message
} else {
    try_again_message
}
At your own pace

My files and GitHub

Every lesson can become your own record: code, notes or a practice plan. Saving a file to GitHub is optional and does not change your XP.

Student guide

The editor and downloads open when this lesson is available to your account. Check access below or return to the track map.

Checking your access to this lesson…

Rullstpetbot

AI can make mistakes. Check the lesson material.