Difference between = and ==

Hello,

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

Thanks in advance.

Peace be upon you -

Junayeed Ahnaf N.

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

= is for assignment
== is for comparison

Joe

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