| | IF...THEN abbreviated string comparisons fail - AutoIt Forums (Site not responding. Last check: ) |
 | | Now I'm not certain that AutoIt claims to be able to handle the abbreviated form for strings, but seeing that it handles empty strings correctly, and seeing that it does follow 3/4 of the generally accepted way of handing this construct, it's natural that many coders will use this, assuming that it works. |
 | | My point is that string tests, where empty is differentied from non empty, also works in all the other languages (in my experience) where the abbreviation for numerics work. |
 | | But even if that is the case, considering the 3/4 of the conditions I outlined work correctly (half the string tests included), it would be completely reasonable for a programmer to assume that testing of non empty strings works exactly as expected. |
| www.autoitscript.com /forum/index.php?showtopic=9605 (1004 words) |