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

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -