/help if-then-else states:
***
You can use the ! prefix in front of variables and identifiers in an if-then-else statement to negate a value. The following statements are equivalent.
if (%x == $null) echo x has no value
if (!%x) echo x has no value
***
Now, at least the way I read this, it is saying that A implies B and B implies A, but that is not the case.
* While it is true, that the two statements match for %x == $null
* it is not true that (!%x) will always produce the same result as (%x == $null)
What about when %x == 0??
"Equivalent", in my dictionary, means that the statements imply one another, when in fact the first implies the second but not the other way around.
Anyone else?