RosettaCodeData/Task/Empty-string/Picat/empty-string-2.picat

5 lines
177 B
Plaintext

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