A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
8
Task/Empty-string/Liberty-BASIC/empty-string.liberty
Normal file
8
Task/Empty-string/Liberty-BASIC/empty-string.liberty
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
'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."
|
||||
Loading…
Add table
Add a link
Reference in a new issue