RosettaCodeData/Task/Empty-string/Red/empty-string.red

7 lines
178 B
Plaintext

Red []
s: copy "" ;; assign empty string
?? s
if empty? s [print "string is empty "] ;; check if string is empty
s: "abc"
prin s unless empty? s [print " not empty"]