Empty string: Difference between revisions

Added XLISP
(Added XLISP)
Line 1,616:
if Len(s) > 0 then Debug.Print "not empty."
</lang>
 
=={{header|XLISP}}==
<code>STRING-NULL?</code> returns true if its argument is a string of length zero. In a REPL:
<lang scheme>[1] (define my-empty-string "") ;; assign an empty string to a variable
 
MY-EMPTY-STRING
[2] (string-null? my-empty-string)
 
#T
[3] (string-null? "A non-empty string")
 
()</lang>
 
=={{header|XPL0}}==
519

edits