Empty string: Difference between revisions

m
Line 2,445:
=={{header|Smalltalk}}==
<lang smalltalk>"Assign empty string to a variable"
str := ''.
 
"Check that string is empty"
str isEmpty.
 
"Check that string is not empty"
str isEmpty not.
"alternatives:"
str notEmpty
str size = 0
str = ''</lang>
 
=={{header|SNOBOL4}}==
Anonymous user