in reply to Re: Logical Not not working!!!
in thread Logical Not not working!!!

I am using it check the results later in the code..but thanks guys!!

Replies are listed 'Best First'.
Re^3: Logical Not not working!!!
by ikegami (Patriarch) on Aug 20, 2010 at 22:50 UTC
    You apparently have a boolean, so checking involes using
    if (!$value)
    instead of
    if ($value == 0)

    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");

    But there's no need to format it until it's time to output it.