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

5 lines
177 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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