Ok, here are some easy points. PyBinding came with this script:
def IsNotNull(value):
return value is not None
It is close, but what I want is this.
bool IsNotNullOrEmpty(string value) {
return (value != null) && (value.Length > 0 );
}
EDIT WTF?
Someone gives the right answer "return value is not None and len(value) > 0", then deletes his post before I can say thank you. And what's left is a three people spouting off nonsense that doesn't even come close to giving the right result.