RosettaCodeData/Task/Empty-string/Smalltalk/empty-string.st

9 lines
141 B
Smalltalk
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
"Assign empty string to a variable"
str := ''.
"Check that string is empty"
str isEmpty.
"Check that string is not empty"
str isEmpty not.