RosettaCodeData/Task/Empty-string/DWScript/empty-string.dw

12 lines
164 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
var s : String;
s := ''; // assign an empty string (can also use "")
if s = '' then
PrintLn('empty');
s := 'hello';
if s <> '' then
PrintLn('not empty');