RosettaCodeData/Task/Empty-string/Emacs-Lisp/empty-string-1.l

7 lines
158 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(setq str "") ;; empty string literal
(if (= 0 (length str))
(message "string is empty"))
(if (/= 0 (length str))
(message "string is not empty"))