11 lines
198 B
Lua
11 lines
198 B
Lua
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
|