Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Empty-string/PureBasic/empty-string.basic
Normal file
17
Task/Empty-string/PureBasic/empty-string.basic
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Procedure.s isStringEmpty(a.s)
|
||||
If a
|
||||
ProcedureReturn "String is not empty, it contains '" + a + "'."
|
||||
Else
|
||||
ProcedureReturn "String is empty, or null."
|
||||
EndIf
|
||||
EndProcedure
|
||||
|
||||
If OpenConsole()
|
||||
Define a.s = ""
|
||||
Define b.s = "stuff"
|
||||
PrintN(isStringEmpty(a))
|
||||
PrintN(isStringEmpty(b))
|
||||
|
||||
Print(#CRLF$ + #CRLF$ + "Press ENTER to exit"): Input()
|
||||
CloseConsole()
|
||||
EndIf
|
||||
Loading…
Add table
Add a link
Reference in a new issue