RosettaCodeData/Task/Empty-string/Yabasic/empty-string.basic
2026-02-01 16:33:20 -08:00

15 lines
292 B
Text

sub IsEmpty (s$)
if len(s$) = 0 then
print "String is empty"
else
print "String is not empty"
endif
if s$ = "" print "yes, the string is empty"
if s$ <> "" print "no, the string is not empty"
end sub
t$ = ""
IsEmpty (t$)
u$ = "not empty"
IsEmpty (u$)
end