Empty string

From Rosetta Code
Revision as of 12:39, 19 February 2021 by Drkameleon (talk | contribs) (Replaced content with "=={{header|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? empt...")

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