ff3d-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ff3d-users] Multiple if-statements...an issue?!


From: Stephane Del Pino
Subject: Re: [ff3d-users] Multiple if-statements...an issue?!
Date: Mon, 16 Aug 2004 17:40:34 +0200
User-agent: KMail/1.6.2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Arun.

I think that you did not use the syntax that correspond to your needs.
You want to do:
        if (C(xo)<C0) {
          do something on C
        } else {
          do something else on C
        }
but you coded it like this:
        if (C(x0)<C0) {
          do something on C
        }
        if (C(x0)>=C0) {
          do something else on C
        }
which is not the same thing since you are modifying C!
C verifies the first assertion and then is modified. Then it can verify the 
second assertion, etc...

I think that using the 'else' keywork is the solution.

Best regards.
Stephane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBINVybZyhKhZwdc0RAtWlAKDQype4H3WPv6Vx7d90nospSm3e+wCfapOp
kkULoAY9kL/7mJRRBa7QiyA=
=TdqF
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]