Empty string: Difference between revisions

Content added Content deleted
Line 2,445: Line 2,445:
=={{header|Smalltalk}}==
=={{header|Smalltalk}}==
<lang smalltalk>"Assign empty string to a variable"
<lang smalltalk>"Assign empty string to a variable"
str := ''.
str := ''.


"Check that string is empty"
"Check that string is empty"
str isEmpty.
str isEmpty.


"Check that string is not empty"
"Check that string is not empty"
str isEmpty not.
str isEmpty not.
"alternatives:"
"alternatives:"
str notEmpty
str notEmpty
str size = 0
str size = 0
str = ''</lang>
str = ''</lang>


=={{header|SNOBOL4}}==
=={{header|SNOBOL4}}==