RosettaCodeData/Task/Empty-string/Liberty-BASIC/empty-string.basic
2023-07-01 13:44:08 -04: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."