RosettaCodeData/Task/Empty-string/Yabasic/empty-string.basic

16 lines
292 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
sub IsEmpty (s$)
if len(s$) = 0 then
print "String is empty"
else
print "String is not empty"
endif
2026-02-01 16:33:20 -08:00
if s$ = "" print "yes, the string is empty"
2023-07-01 11:58:00 -04:00
if s$ <> "" print "no, the string is not empty"
end sub
t$ = ""
IsEmpty (t$)
u$ = "not empty"
IsEmpty (u$)
end