in reply to Re: Logical Not not working!!!in thread Logical Not not working!!!
if (!$value) [download]
if ($value == 0) [download]
Mind you, the latter would work fine with !1 as well, so I don't see the problem.
If need to format it to print it, you can use the conditional operator.
print("value = ", $value?"true":"false", "\n"); [download]
But there's no need to format it until it's time to output it.