Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Empty-string/Chipmunk-Basic/empty-string.basic
Normal file
15
Task/Empty-string/Chipmunk-Basic/empty-string.basic
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
100 cls
|
||||
110 t$ = ""
|
||||
120 isempty(t$)
|
||||
130 u$ = "not empty"
|
||||
140 isempty(u$)
|
||||
150 end
|
||||
160 sub isempty(s$)
|
||||
170 if len(s$) = 0 then
|
||||
180 print "String is empty"
|
||||
190 else
|
||||
200 print "String is not empty"
|
||||
210 endif
|
||||
220 if s$ = "" then print "yes, the string is empty"
|
||||
230 if s$ <> "" then print "no, the string is not empty"
|
||||
240 end sub
|
||||
Loading…
Add table
Add a link
Reference in a new issue