RosettaCodeData/Task/Empty-string/Run-BASIC/empty-string.run

12 lines
281 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
var$ = ""
' --------------
'empty string
' -------------
if var$="" then print "String is Empty"
if len(var$)=0 then print "String is Empty"
' -------------
'not empty string
' -------------
if var$<>"" then print "String Not empty."
if len(var$)>0 then print "String Not empty."