From: Matthew Smillie Date: 2006-08-15T22:53:18+09:00 Subject: Re: question about if-statements On Aug 15, 2006, at 14:40, fabsy wrote: > Thanks! > >> Btw, why do you compare with greater than and a string? > I didn't know how to compare so I just guessed it would be greater > than. > How would you do if you where to do a program like mine? The way you > wrote or any other way? Well, you're testing for equality, so greater than wouldn't catch a lot of cases. I'd suggest these: if X != Y # X not equal to Y unless X == Y # X equal to Y You can pick the one that's more linguistically appealing to you, though I have a hunch that 'if' is more popular than 'unless'. matthew smillie.