Anonymous user
Empty string: Difference between revisions
m
→{{header|Smalltalk}}: format
m (→{{header|Smalltalk}}: format) |
|||
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}}==
|