Empty string
Arturo
<lang rebol>s: ""
if empty? s -> print "the string is empty" if 0 = size s -> print "yes, the string is empty"
s: "hello world"
if not? empty? s -> print "the string is not empty" if 0 < size s -> print "no, the string is not empty"</lang>
- Output:
the string is empty yes, the string is empty the string is not empty no, the string is not empty