Empty string: Difference between revisions
Content added Content deleted
(Added MiniScript) |
mNo edit summary |
||
Line 1,281: | Line 1,281: | ||
Also possible is <code>(string= "" str)</code>. |
Also possible is <code>(string= "" str)</code>. |
||
An common lisp incompatible way: |
|||
<syntaxhighlight lang="lisp"> |
|||
(defvar str "" "An empty string") |
|||
(if (length= str 0) |
|||
(message "string is empty") |
|||
(message "string is not empty")) |
|||
</syntaxhighlight> |
|||
=={{header|EMal}}== |
=={{header|EMal}}== |