RosettaCodeData/Task/Empty-string/Mercury/empty-string.mercury

6 lines
164 B
Plaintext

S = "", % assignment
( if S = "" then ... else ... ), % checking if a string is empty
( if not S = "" then ... else ... ), % checking if a string is not empty