I need some help on And 9/17 Control Flow in RUBY PLZ

(This is my code)

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = True && False =! False

boolean_2 = true && 100 >= 100

boolean_2 = True && False =! False

boolean_3 = 23 == 8 && 32 == 9

boolean_3 = True && True =! True

its say this
Oops, try again. It looks like your value for boolean_2 isn’t correct.

77 < 78   &&   77 < 77
  true          false

Evaluating, true && false, gives false, so,

boolean_1 = false

Follow this line of reasoning to evaluate the remaining expressions.

well i did that on boonlean _2

#boolean_2 = true && 100 >= 100
boolean_2 = True && False =! False

but it still does not work

when it says

boolean_2 = true && 100 >= 100

What should the results of boolean_2 equal to if boolean_2 = true && 100 >= 100

well now i did this and it still says some thang wrong with boonlean_2

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = False

boolean_2 = true && 100 >= 100

boolean_2 = False

boolean_3 = 23 == 8 && 32 == 9

boolean_3 = True

oh wait let me try that

what do you see wrong with boolean_2?
is 100 less than or equal to 100? Does that sounds right is that wrong?

it still does not work

this does not work

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = True && False =! False

boolean_2 = true && 100 >= 100

boolean_2 = True && 100 >= 100

boolean_3 = 23 == 8 && 32 == 9

boolean_3 = True && True = True

You want to post the results of the equations.
True = That is Right!
False = That is Wrong!

so if you have a equation 77 < 78 is 77 less than 78? the && Checks to see if both statements are equal to each other.
is 77 less than 77? ask yourself these questions.

so Say i ask myself does Apple = Apple is that true or false? && does Banana = Apple is that true or false?

i made boonlean_1 wrong and it still says boonlean _2 is wrong but it should say boonlean_1 is wrong

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = True && False =! True

boolean_2 = true && 100 >= 100

boolean_2 = True && 100 >= 100

boolean_3 = 23 == 8 && 32 == 9

boolean_3 = True && True = True

Oops, try again. It looks like your value for boolean_2 isn’t correct.

Soo if you have True && False
what would be the results of True = False? would it be True or False?
if 77 < 78 is True and 77 < 77 is False
True = False ?

what???
i have to put 20 letters so i have to yous that many ? but now i dont need to i was going to go with just that but it seid it was spamm

this is my code

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = True && False =! False

boolean_2 = true && 100 >= 100

boolean_2 = True && 100 >= 100

boolean_3 = 23 == 8 && 32 == 9

boolean_3 = True && True = True

               1 = 1  && 2 = 2
boolean_1  = true && true
                 5 >= 4 && 3 <= 2
boolean_2  = true && false
                 1 != 1 && 1 != 2
boolean_3 = false && true 
                3 <= 0 && 3 >= 0
boolean_4 false && false

read this and compare it to yours

im done for the day so if you have a answer tell me on monday

Set it to only the computed value, not an expression.

true   &&   (100 >= 100)   // treat the second operand as one expression
true           true

true && true  == true

This is Ruby, not Python. true vs True, false vs False

I added the brackets above for illustration, not because they are needed.

1 Like

Sorry that was my fault. I realized that i was using Pythons code not ruby.

that is what i did here is my code

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = True && False =! False

boolean_2 = true && 100 >= 100

boolean_2 = True && 100 >= 100

boolean_3 = 23 == 8 && 32 == 9

boolean_3 = True && True = True

it still say
Oops, try again. It looks like your value for boolean_2 isn’t correct.