Empty string: Difference between revisions
added Arturo
Drkameleon (talk | contribs) (Undo revision 324492 by Drkameleon (talk)) |
Drkameleon (talk | contribs) (added Arturo) |
||
Line 280:
</lang>
=={{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? empty? s -> print "the string is not empty"
if 0 < size s -> print "no, the string is not empty"</lang>
{{out}}
<pre>the string is empty
yes, the string is empty
the string is not empty
no, the string is not empty</pre>
=={{header|AutoHotkey}}==
|