all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
21
Task/Undefined-values/PureBasic/undefined-values.purebasic
Normal file
21
Task/Undefined-values/PureBasic/undefined-values.purebasic
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