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