LANGUAGE ยป RUBY

Operators

ruby
my_var = "something"
my_var ||= "something"  # Only assign if it is nil

my_int += 1
my_int -= 1
my_int *= 2
my_int /= 2

v1 == v2
v1 != v2
v1 > v2
v1 < v2
v1 >= v2
v1 <= v2

v1 <=> v2  # -1, 0, 1 (less, equal, greater)

c1 && c2
c1 || c2
!cond