Difference between = and ==


What is the difference between == and =? I mean, which to use when, and

Thanks in advance.

Peace be upon you -

Junayeed Ahnaf N.

Twitter - @Nirjhor http://twitter.com/nirjhor

= is for assignment
== is for comparison


Sent from my iPad

= is assignment
== is comparison

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs