Empty string: Difference between revisions
Content added Content deleted
(→{{header|AWK}}: Closing lang tag. Someone doesn't preview or look at the resulting page after submitting! tsk.) |
(→{{header|TXR}}: Added.) |
||
Line 627: | Line 627: | ||
if {[string length $s] == 0} {puts "is empty"} |
if {[string length $s] == 0} {puts "is empty"} |
||
if {[string compare $s ""] != 0} {puts "is non-empty"}</lang> |
if {[string compare $s ""] != 0} {puts "is non-empty"}</lang> |
||
=={{header|TXR}}== |
|||
=={{header|TUSCRIPT}}== |
=={{header|TUSCRIPT}}== |