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

9 lines
141 B
Smalltalk

"Assign empty string to a variable"
str := ''.
"Check that string is empty"
str isEmpty.
"Check that string is not empty"
str isEmpty not.