$True usually evaluated as true. I do not know if you can set it as false. I think you could, if only it were not read-only. Of course, it is not recommended to install it on something else. System-independent translations probably exist as if (1), but I would not guarantee this.
if($True) {write-host "Foo!"}
then you can execute
if($False) {write-host "not"}
jormis Nov 27 '09 at 6:46 2009-11-27 06:46
source share