---------- > In a message dated 98-05-08 08:04:10 EDT, you write: > > << if then > > If is 0 it is True and the will be taken. If contains > anything else it will not. > >> > > I thought any value other than 0 makes this statement true. What am I missing? > > Jon > Jon, There does seem to be some confussion. The final word can only come from the program. When you don't know how something works or when something isn't working like you think it should, it is time to find out what the program thinks (and does), The way to do this is to write a simple, small program who's only job is to see what the code in question is doing. If your DOS has QBasic, then this is a good language in which to write test programs. Or if you can test it with the Stamp basic, then that is more certain. When you are playing with logic operators I would suggest that you display your input and output in binary, This will help you see what is going on with the program. You show a lot of promise in that you found the code in your program that wasn't working like yor thought it should and you did some testing to see what it was doing. Then you posted a question with just the troubled code and stated your question in a clear manner. Now it may be time to play with the code in question and find what it does under various inputs. With this knowledge you will be able to develop your own 'rules'. As for what makes a TRUE value, when I read the post that stated that TRUE was 0, I thought I had bade a big bobo. Then I looked at your post and seen what you said TRUE was and thought that this had influenced me and caused me to give the wrong value for TRUE. The thing is that it is easy to think one thing and say another or just get things wrong. And one should NEVER ignore the possibility that they are wrong. So what is a TRUE value? What does the book say? Does the assembler, compiler or interputer work like the book says? Yes, it is like the guy who said "I wish the person who drew the cover had wrote the book." So the assembler, compiler, interpeter may have a bug. Bill C. bill@cornutt.com