I have this “if” statement, but I’m really messed up today and can’t think of how to reverse it to be better…
if (plist.Exists("No Update Ramdisk") && plist.Get<PlistBool>("No Update Ramdisk").Value)
{
}
else
{
...
}
Just so you don’t ask what plist is, I wrote a plist parser in .NET and I am scanning it for values
You have at least three possibilities
if (! A)(A && B) == !(!A || !B)http://en.wikipedia.org/wiki/De_Morgan%27s_laws