Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
21
Task/Undefined-values/PureBasic/undefined-values.basic
Normal file
21
Task/Undefined-values/PureBasic/undefined-values.basic
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
If OpenConsole()
|
||||
|
||||
CompilerIf Defined(var, #PB_Variable)
|
||||
PrintN("var is defined at first check")
|
||||
CompilerElse
|
||||
PrintN("var is undefined at first check")
|
||||
Define var
|
||||
CompilerEndIf
|
||||
|
||||
CompilerIf Defined(var, #PB_Variable)
|
||||
PrintN("var is defined at second check")
|
||||
CompilerElse
|
||||
PrintN("var is undefined at second check")
|
||||
Define var
|
||||
CompilerEndIf
|
||||
|
||||
Print(#CRLF$ + #CRLF$ + "Press ENTER to exit")
|
||||
Input()
|
||||
CloseConsole()
|
||||
|
||||
EndIf
|
||||
Loading…
Add table
Add a link
Reference in a new issue