RosettaCodeData/Task/Empty-string/Red/empty-string.red
2023-07-01 13:44:08 -04:00

6 lines
178 B
Text

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"]