Having trouble creating a false statement


#1

Hello my name is Frank and I'm having trouble creating a false statement using the the boolean operator (!)

Thanks

Frank


#2

1 does not equal (!=) 1 is of course false.


#3

Have these as my answers, but not working out. Where am I going wrong at?

test_1 should be true

test_1 = (7>1) && (9>2) // true

test_2 = should be true

test_2 = (7==7) || (2==2) // true

test_3 = should be false

test_3 = !(3<9)


#4

Other than the fact that ruby comments use #, not //, your code works. Try reseting the code editor and reentering the code.


#5

Hi Frank,

The problem is how you are entering the code. The part where you put the statements is where you are supposed to put if it is true or false. I could be wrong, I am just learning and suck pretty bad. I was stuck on this for about an hour and then figured it out. This is what mine looked like when I was finally able to pass:

test_1 = . (8 < 9 ) && (2 > 1)

test_1 = true

test_2 = ( 1 > 10 ) || ( 5 < 8) true

test_2 = true

test_3 = !( 8 < 6 )

test_3 = false

I hope this helps