Empty string: Difference between revisions

Content added Content deleted
No edit summary
Line 1,387: Line 1,387:
puts "empty string has no length" if empty_string2.length() == 0
puts "empty string has no length" if empty_string2.length() == 0
puts "empty string is not nil" unless empty_string1 == nil</lang>
puts "empty string is not nil" unless empty_string1 == nil</lang>

=={{header|Nanoquery}}==
<lang nanoquery>$s = ""

if len($s)=0
println "$s is empty"
end

if len($s)>0
println "$s is not empty"
end</lang>


=={{header|Nemerle}}==
=={{header|Nemerle}}==