Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
19
Task/Empty-string/OPL/empty-string.opl
Normal file
19
Task/Empty-string/OPL/empty-string.opl
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
REM String variables are initially empty after declaring them.
|
||||
|
||||
PROC main:
|
||||
LOCAL s$(10)
|
||||
checkstr:(s$)
|
||||
s$="not empty."
|
||||
checkstr:(s$)
|
||||
s$=""
|
||||
checkstr:(s$)
|
||||
GET
|
||||
ENDP
|
||||
|
||||
PROC checkstr:(s$)
|
||||
IF s$=""
|
||||
PRINT "String is empty."
|
||||
ELSE
|
||||
PRINT "String is",s$
|
||||
ENDIF
|
||||
ENDP
|
||||
Loading…
Add table
Add a link
Reference in a new issue