Thread: operators
View Single Post
  #6  
Old 11-05-2006, 06:48 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]
if (foo = bar) {
would assign bar too foo?
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.

Quote:
Originally Posted by Chompy
Hmm, I didn't understand fully all of that, but do you think
you can show some examples on how they work?
I would love to know those bit-operators, and how to use them
properly in a script
You don't understand it because you havn't learned about it in school yet. Operators are mathematical functions, learned through math courses. Stefan didn't think these up himself, he integrated mathematical functions into GScript.
Reply With Quote