Empty string: Difference between revisions
Content added Content deleted
Drkameleon (talk | contribs) (Undo revision 324492 by Drkameleon (talk)) |
Drkameleon (talk | contribs) (added Arturo) |
||
Line 280: | Line 280: | ||
</lang> |
</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}}== |
=={{header|AutoHotkey}}== |