RosettaCodeData/Task/Empty-string/Liberty-BASIC/empty-string.liberty

9 lines
240 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
'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."