Jump to content

Empty string: Difference between revisions

(Added DWScript)
Line 534:
if {[string compare $s ""] != 0} {puts "is non-empty"}</lang>
 
=={{header|TUSCRIPT}}==
<lang tuscript>
$$ MODE TUSCRIPT
s=""
IF (s=="") PRINT "s is an empty string"
IF (s!="") PRINT "s is a non-empty string"
</lang>
Output:
<pre>
s is an empty string
</pre>
=={{header|UNIX Shell}}==
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.