Empty string: Difference between revisions

m
No edit summary
Line 768:
=={{header|I}}==
<lang i>software {
var s = ""
// Can either compare the string to an empty string or
if len(s) = 0
// 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
}
}</lang>
 
=={{header|Icon}} and {{header|Unicon}}==
Anonymous user