RosettaCodeData/Task/Empty-string/Picat/empty-string-2.picat
2023-07-01 13:44:08 -04:00

4 lines
177 B
Text

main =>
S = "", % assign an empty string to a variable
S == [], % check that a string is empty,
"not empty" != []. % check that a string is not empty