Anonymous user
Empty string: Difference between revisions
Add Nimrod
(added swift) |
(Add Nimrod) |
||
Line 680:
3: " " looks empty but may not be
</pre>
=={{header|Nimrod}}==
<lang nimrod>var x = ""
if x == "":
echo "empty"
if x != "":
echo "not empty"
# Alternatively:
if x.len == 0:
echo "empty"
if x.len > 0:
echo "not empty"</lang>
=={{header|Objeck}}==
|