RosettaCodeData/Task/Empty-string/Liberty-BASIC/empty-string.liberty
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

8 lines
240 B
Text

'assign empty string to variable
a$ = ""
'check for empty string
if a$="" then print "Empty string."
if len(a$)=0 then print "Empty string."
'check for non-empty string
if a$<>"" then print "Not empty."
if len(a$)>0 then print "Not empty."