|
-
Oct 22nd, 2007, 02:11 PM
#8
PowerPoster
Re: Can't delete folder
 Originally Posted by lansalot
Of course it's an error - you aren't making a statement that can possibly evaluate in terms of True or False. Hence my saying that an IF statement must ALWAYS evaluate to either true or false. Saying that it doesn't always have to by showing that it throws an error if you don't, well, umm.. kind of proves my point, no ?
In the above, the longhand of "If A=B" is actually "If (A=B)=true" when you add the =true construct...
Nice work on the testing however, I wouldn't have bothered my azz...
All up to the individual and their coding style I guess.
LOL .. okay I see what you mean now .. I was talking about what the function or query returns though; string, boolean, long, etc. Thats why yah lost me there for a minute.
After the testing, I went back to my current project and for all the functions that return booleans, took out all the ='s
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|