Empty string: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 767:
if Len(s) > 0 then Debug.Print "not empty."
</lang>
=={{header|XPL0}}==
<lang XPL0>code Text=12;
string 0; \use zero-terminated convention, instead of MSb set
char S;
[S:= ""; \assign an empty string
if S(0) = 0 then Text(0, "empty
");
S:= "Hello";
if S(0) # 0 then Text(0, "not empty
");
]</lang>
|