Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Empty-string/I/empty-string.i
Normal file
13
Task/Empty-string/I/empty-string.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
software {
|
||||
s = ""
|
||||
|
||||
// Can either compare the string to an empty string or
|
||||
// test if the length is zero.
|
||||
if s = "" or #s = 0
|
||||
print("Empty string!")
|
||||
end
|
||||
|
||||
if s - "" or #s - 0
|
||||
print("Not an empty string!")
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue