CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
11
Task/Empty-string/Lua/empty-string.lua
Normal file
11
Task/Empty-string/Lua/empty-string.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
str = "" -- create empty string
|
||||
|
||||
-- test for empty string
|
||||
if str == "" then
|
||||
print "The string is empty"
|
||||
end
|
||||
|
||||
-- test for nonempty string
|
||||
if str ~= "" then
|
||||
print "The string is not empty"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue