Empty string: Difference between revisions

No edit summary
Line 1,378:
str isEmpty not.
</lang>
 
=={{header|SNOBOL4}}==
An assignment statement with nothing to the right of the <tt>=</tt> operator assigns the empty string (or, as it is more commonly called in SNOBOL, the null string).
<lang snobol4>* ASSIGN THE NULL STRING TO X
X =
* CHECK THAT X IS INDEED NULL
EQ(X, NULL) :S(YES)
OUTPUT = 'NOT NULL' :(END)
YES OUTPUT = 'NULL'
END
</lang>
{{out}}
<pre>NULL</pre>
 
=={{header|Standard ML}}==
519

edits