Monday, August 07, 2006 12:42 AM
by
brian
Who needs booleans...
... when strings are so flexible.
Seen all over some production code.
string isValid = SomeDbFunction() == "" ? "T" : "F";
...
if(isValid == "T")
{
...
}
// The best part
if(isValid != "F")
{
...
}