Implemented if statements and file includes checking (that was a hard seg fault to find 🫠)
This commit is contained in:
parent
5b7dd220ae
commit
52f97d2fe4
2 changed files with 39 additions and 0 deletions
14
flagpole/tests/ifs.fp
Normal file
14
flagpole/tests/ifs.fp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
$inc fvmstd.fp
|
||||
|
||||
proc main
|
||||
"Delete System32?" :puts :newline
|
||||
"(y/n)" :puts :newline
|
||||
:getchar @c
|
||||
if &c 0x79 == then
|
||||
"It appears to have failed, are you on linux?" :puts :newline
|
||||
endif
|
||||
if &c 0x6E == then
|
||||
"Alright, have a nice day" :puts :newline
|
||||
endif
|
||||
endproc
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue