Empty string: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 1,217: Line 1,217:
s = '1 is the loneliest number'
s = '1 is the loneliest number'
assert !s.empty</lang>
assert !s.empty</lang>

=={{header|Harbour}}==
</lang><lang visualfoxpro>
// in Harbour we have several functions to check emptiness of a string, f.e. hb_IsNull(), Len(), Empty() et.c.,
// we can also use comparison expressions like [cString == ""] and [cString != ""], yet the most convenient
// of them is `Empty()` (but that depends on personal coding style).
cString := ""
? Empty( cString ) // --> TRUE
IF ! Empty( cString ) // --> FALSE
? cString
ENDIF</lang>




=={{header|Haskell}}==
=={{header|Haskell}}==