Thread: operators
View Single Post
  #5  
Old 11-05-2006, 06:45 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Chompy View Post
hmm, so
PHP Code:
if (foo bar) {
would assign bar too foo?

if (
foo == bar) {
would be to check if foo is equal to bar
think I got it, if that was that I just understood now


No.

foo = bar; would assign the value of bar to foo.

You can't assign a value to something in a condition statement.
Reply With Quote