Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Empty-string/Tcl/empty-string-1.tcl
Normal file
3
Task/Empty-string/Tcl/empty-string-1.tcl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
set s ""
|
||||
if {$s eq ""} {puts "s contains an empty string"}
|
||||
if {$s ne ""} {puts "s contains a non-empty string"}
|
||||
3
Task/Empty-string/Tcl/empty-string-2.tcl
Normal file
3
Task/Empty-string/Tcl/empty-string-2.tcl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
if {[string equal $s ""]} {puts "is empty"}
|
||||
if {[string length $s] == 0} {puts "is empty"}
|
||||
if {[string compare $s ""] != 0} {puts "is non-empty"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue