You are on page 1of 2

The first statement failed because

some_var is not equal to the string “pink elephant” but the string “false”. Therefore, it does not show the statement
“Don't think about the pink elephant!"

To show the statement, one of two things need to happen:


1. Change line 1 to: some_var = “pink elephant”

2. Change line 4 to: if some_var == “false”

The second statement failed because


another_var is not nil but is the string “nil”. Therefore, it does not show the statement “Question mark in the method
name?"

To show the statement, one of two things need to happen:


* note that this only work with the original code. You have to make sure statement one fails for the code to show statement two *

1. Change line 2 to: another_var = nil


2. Change line 7 to: elsif another_var == nil

The third statement failed because


some_var is not false but is the string “false”. Therefore, it does not show the statement “Looks like this one should
execute”

To show the statement, one of two things need to happen:

* note that this only work with the original code. You have to make sure statement one and two fail for the code to show
statement three *

1. Change line 1 to: some_var = false

2. Change line 10 to: elsif some_var == “false”

You might also like