[Tutor] != -1: versus == 1

pedro pedrooconnell at gmail.com
Fri Jul 17 20:40:02 CEST 2009


Thanks for the replies. I think my mistake was assuming that "1" meant 
"true" when if fact it means "index 1". Whe I tested for "== 1", since 
"Source Height" was coincidentally at index 1 it returned something 
which looked like it worked. Thanks for the clarification. And thanks 
for the suggestion to use "in" that is much more readable.
Pete




More information about the Tutor mailing list