Control Flow help!


#1

boolean_1 = 77 < 78 && 77 < 77

77 < 78 && 77 < 77 =>false

boolean_2 = true && 100 >= 100

2 < 10 && 100 >= 100 =>true

boolean_3 = 2**3 == 8 && 3**2 == 9

2**3 == 8 && 3**2 == 9 =>true

I keep getting "Oops, try again. Make sure to type true or false after each =!"


#2

Hi on thta Lesson they gave you that ?

# boolean_1 = 77 < 78 && 77 < 77
boolean_1 = 

# boolean_2 = true && 100 >= 100
boolean_2 = 

# boolean_3 = 2**3 == 8 && 3**2 == 9
boolean_3 =

then you should only put true or false inside the boolean_1 , boolean_2, boolean_3 depend on what the boolean in coment is.

Hint

# boolean_1 = 77 < 78 && 77 < 77
#that bolean is **false** so you will put inside the **boolean_1**
boolean_1 = false


#3

Not working the above problem
please help


#4

Just put "True" or "False" after each boolean instead of copying down the comment


#5

wont let me pass on

this is my code:

test_1 should be false

test_1 = 1 == 55685856677 // false

test_2 = should be false

test_2 = 12312 == 12342422 // false

test_3 = should be true

test_3 = 9 == 9 // true


#6

this is the error:(ruby):8: unterminated regexp meets end of file


#7

Hmm - I was getting that error, too. I think maybe it's the comparator we are using. I think if you use // your are saying "either/or" in which case only one part of the equation has to be true. Try using the &&(AND) comparator for your equations instead of the //(OR) and see what the interpreter spits out on the console.


#8

All you have to do is just type true or false. You don't have to type anything else after the variable.

test_1 = 77 != 77
test_1 =

test_2 = -4 <= -4

test_2 =

test_3 = -44 < -33

test_3 =

test_4 = 100 == 1000

test_4 =


#9

this exercise isn't very clear. I thought based on previous exercises that the hash symbol was for comments only I didn't realize the contents were being accessed.