View Single Post
  #12  
Old 01-10-2002, 10:17 AM
BlKnight BlKnight is offline
Not in Use
Join Date: Mar 2001
Location: N/A
Posts: 1,527
BlKnight is on a distinguished road
Quote:
Originally posted by Faheria_GP2
GScript is not c++, in c++, using == and = are two different things, in graal, they are exactly the same thing

for example

if (j=4) {
iam***(6);
}

in c++ would always run, because the "=" sets j to 4 and returns true, but

if (j==4) {
iam***(6);
}

would only run if j is 4, because it checks for equality and returns true if it is equal, and false if not.

but in graal

if (j=4) and if (j==4) are the exact same thing.

also in graal, you cannot do things like

if (j++<3), because you can't do setting in the "if" block
Guess you haven't had much experiance with it Play with it some time, they are very much so different...
__________________
This account is no longer is use.
Reply With Quote