16. Dare to Compare


#1



https://www.codecademy.com/en/courses/ruby-beginner-en-NFCZ7/3/4?curriculum_id=5059f8619189a5000201fbcb#


the tutorial is telling me to add an expression that evaluates to the correct value using comparators.

# test_1 should be false
test_1 = 
# test_2 = should be false
test_2 = 
# test_3 = should be true
test_3 =

so i did what the tutorial said:

# test_1 should be false
test_1 = 8 > 10 // false
# test_2 = should be false
test_2 = 8 == 10 // false
# test_3 = should be true
test_3 = 10 > 8 // true


...but when click save & submit code it tells me:
Oops, try again. Make sure to put an expression after each =!

What expression is it talking about???


#2

The error message you are getting is odd but I did notice one mistake in your code. The "or" symbol is like this "||", NOT two slashes.
For ex:

test_1 = 8 > 10 || false

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.