Empty string: Difference between revisions

Content added Content deleted
(Added an Algol 68 sample)
(Add Self version)
Line 1,159:
# check that string is not empty
s <> ""</lang>
 
=={{header|Self}}==
<lang self>
"Put an empty string in a slot called 'str'"
str: ''.
"Check that string is empty"
str isEmpty.
"Check that string is not empty"
str isEmpty not.</lang>
 
=={{header|Sidef}}==