what was the condition in the if statement?
-wraith808
false?
-f0dder
I didn't want to assume... He could have just been doing pseudo code like the rest of the code
-wraith808
Quite correct, and indeed, it is THE crucial point.
what was the condition in the if statement?
-wraith808
false?
-f0dder
I didn't want to assume... He could have just been doing pseudo code like the rest of the code
-wraith808
Quite correct, and indeed, it's is THE crucial point.
"comparisonIndex" is an Int32 counter that I initialize outside the conditional to -1. It is only ever incremented, so the following will only ever evaluate to false:
if (comparisonIndex < -111)
Stuff works then.
In short, in C++ or C# (and possibly all other .NET languages or in VS 2010 or something like that), you CANNOT use (literally, and not pseudo-coded-ly
):
And then follow with an else clause.
Instead, use an expression that you KNOW will always evaluate to false.
Bizarre. Yes. Easy to get around once you know. Sure. Sane? Hell no~!