dodicat wrote:-1 and 0 are the two possible returns.
If tests are Boolean (Capital B)
I think they were part of C.Bools thesis.
boolean datatypes are a new freebasic addition.
true/false ... 1/0
Thus my mix up.
TRUE and FALSE are outcomes while data type Boolean is merely a convient way to hold either of them. Remember QuickBASIC where you could define
Yet, QuickBASIC did not have a Boolean data type.
Since the beginning of the computer age, it was generally accepted that TRUE is anything non-zero, while FALSE is always zero. So testing
IF LEN(string) THEN returns TRUE if the outcome is non-zero. It is up to a compiler to translate that to -1 or anyting other than zero. ;)