Yeah, as I looked it over again it did appear to be pseudocode. Probably the best way to present stuff in this thread anyways...
Well I for one was making the mistake you mentioned, by making a variable "=" when I needed it to be comapared to another variable, a ala "= =". That is a big one for people.
What kmote and I are referring to for anyone else that might not know, but when you have two variables and you want to compare there variables you have to use the two consecutive equals signs, which is NOT the same as when a variable is set to something. By the way, a variable is a "container" , like a memory "box". You make the variable by declaring it, and naming it, usually at the same time, such as:
In Javascript
:
Code:
var someVariable = "Hello !";
That same thing in Visual Basic would be:
Code:
dim someVariable As String = "Hello"
The two equals signs would be used to compare the
contents of two variables in this Javascript case:
Code:
If (someVariable == someOtherVariable) {
//then something happens right here between the brackets
}
All too often people confuse the "=" scenario with the "= =" scenario.