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

7 lines
158 B
EmacsLisp
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
(setq str "") ;; empty string literal
(if (= 0 (length str))
(message "string is empty"))
(if (/= 0 (length str))
(message "string is not empty"))