Empty string: Difference between revisions

no edit summary
(→‎{{header|MATLAB}} / {{header|Octave}}: empty string in Matlab and Octave)
No edit summary
Line 328:
print empty? :str ;prints 'true'
print not empty? :str ;prints 'false'
</lang>
 
=={{header|Lua}}==
<lang Lua>
str = "" -- create empty string
str == "" -- test for empty string
str ~= "" -- test for nonempty string
</lang>
 
Anonymous user