Niffo wrote:It also looks like a regression because near all other programming languages accepts this syntax.
The thing to remember about "IF" statements, in any language, is that they test the value of an integer expression. That's why NOT, XOR, AND, etc, can be used. However, a string is not a valid integer expression and must always be compared to something in order to create an integer value that represents True or False.
For example, the following are valid:
If String1 = String2
If Not (String1 = String2)
But the following are invalid:
If String1
If Not String1
For ten years Caesar ruled with an iron hand, then with a wooden foot, and finally with a piece of string.
~ Spike Milligan