What is wrong is when you test the variables (for example If A=666) you needOn the TI-86, when you evaluate "A=666", the calc makes an equation variable named "A", and stores "666" in that variable. When you evaluate "A==666", you are performing a test, and it will return either 1 or 0 depending on whether the statement is true or not.
2 equals signs (for example If A==666) to get it to compare the numbers.
~Dave <the_regul8r@bigfoot.com>