Empty string: Difference between revisions
m
Zoomscript example added.
Childishbeat (talk | contribs) m (Zoomscript example added.) |
|||
Line 2,705:
s.toBool() //-->False
if (s) println("not empty")</lang>
=={{header|Zoomscript}}==
For typing:
<lang Zoomscript>var string
string = ""
if eq string ""
print "The string is empty."
else
print "The string is not empty."
endif</lang>
For importing:
¶0¶var string¶0¶string = ""¶0¶if eq string ""¶1¶print "The string is empty."¶0¶else¶1¶print "The string is not empty."¶0¶endif
=={{header|ZX Spectrum Basic}}==
|