Lost in Booleans


#1



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


I don't understand how the symbols are defined
1) With && it says if left side is not true it won't bother trying right side but what if it was the other way around would it then try right side and if right side is not true then it will come back erroneous?

2) what does // exactly do??

3) in Ruby to set something equal to another you MUST use 2 equal signs??

ERROR MESSAGES:(ruby):1: syntax error, unexpected '=', expecting ')'
test_1 = (2=2) && (4=4) // true
^
(ruby):1: syntax error, unexpected '=', expecting ')'
test_1 = (2=2) && (4=4) // true
^


# test_1 should be true
test_1 = (2==2) && (4==4) // true

# test_2 = should be true
test_2 = (4<2) || (8>=8)

# test_3 = should be false
test_3 = !(false) // true


#2

@ihabacode,
Here some documentation....
https://en.wikibooks.org/wiki/Ruby_Programming
https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Operators