Jump to content

Empty string: Difference between revisions

m
Zoomscript example added.
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}}==
441

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.