Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/Empty-string/GW-BASIC/empty-string.basic
Normal file
9
Task/Empty-string/GW-BASIC/empty-string.basic
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
10 DIM S1$ 'implicitly defined empty string
|
||||
20 S2$ = "" 'explicitly defined empty string
|
||||
30 S3$ = "Foo bar baz"
|
||||
40 S$=S1$ : GOSUB 200
|
||||
50 S$=S2$ : GOSUB 200
|
||||
60 S$=S3$ : GOSUB 200
|
||||
70 END
|
||||
200 IF LEN(S$)=0 THEN PRINT "Empty string" ELSE PRINT "Non-empty string"
|
||||
210 RETURN
|
||||
Loading…
Add table
Add a link
Reference in a new issue