Beginner Ruby
Q37 / 100

What does "unless condition" do in Ruby?

Correct! Well done.

Incorrect.

The correct answer is B) Executes the block only if the condition is false

B

Correct Answer

Executes the block only if the condition is false

Explanation

"unless" is the inverse of "if" — the associated code runs only when the condition evaluates to false.

Progress
37/100