Tutorial by Examples

OperatorDescription==true if the two values are equal.!=true if the two values are not equal.<true if the value of the operand on the left is less than the value on the right.>true if the value of the operand on the left is greater than the value on the right.>=true if the value of the oper...
Simple Assignment = is a simple assignment. It creates a new local variable if the variable was not previously referenced. x = 3 y = 4 + 5 puts "x is #{x}, y is #{y}" This will output: x is 3, y is 9 Parallel Assignment Variables can also be assigned in parallel, e.g. x, y = 3,...

Page 1 of 1