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

9 lines
240 B
Plaintext

'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."