> why dont you do something like this
> if (x == "EASY" || "easy" )
You've written (with red bits for clarity)
if ( ( x == "EASY" ) || ( "easy" != NULL ) )
In essence, it's always true, because the right hand side is always true, and the OR makes the whole thing true.
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Offline 7,164 posts
since Dec 2005