Empty string: Difference between revisions

Content added Content deleted
(Added DWScript)
Line 534: Line 534:
if {[string compare $s ""] != 0} {puts "is non-empty"}</lang>
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}}==
=={{header|UNIX Shell}}==