RosettaCodeData/Task/Empty-string/DWScript/empty-string.dw
2013-04-11 11:14:19 -07:00

11 lines
164 B
Text

var s : String;
s := ''; // assign an empty string (can also use "")
if s = '' then
PrintLn('empty');
s := 'hello';
if s <> '' then
PrintLn('not empty');