RosettaCodeData/Task/Empty-string/Nyquist/empty-string-4.nyquist

13 lines
294 B
Plaintext

;nyquist plug-in
;version 4
;codetype sal
;type tool
;name "Empty string"
define variable emptystring = "a" ;; Define global variable
;; The ternary operator is #?
return #?(emptystring = "",
"The string is empty.",
"The string is not empty.")