ironpython - String is null or empty -
OK, these are some easy points. PyBinding came with this script:
def IsNotNull (value): return value is none
It is closed, but what do I need?
bool isNotNullOrEmpty (string value) {return (value! = Null) & amp; Amp; (Value length & gt; 0); }
To check that a string is empty, you will use it. Try it:
def IsNotNull (value): Return value is none and Lennon (value)> 0
Comments
Post a Comment