This does not work...
a$ = "a"
IF a$<>"" THEN DEBUG "a$ not blank"
There are ways around this, checking for the length of the string, ELSEIF etc... but there all workarounds. This could be very confusing for a GLB beginner.
Request: It would be great if good old logical NOT was supported in the IF statements.
That code works fine for me with version 7.078. What version are you running?
Thanks Moru, weird problem.
Now I am confused, if I run the above code as a new project, it runs as expected.
If I insert the code into my own project, it does not work?
I'll do a little experimenting to see if I can see if I highlight the problem better... :doubt:
Pah, previous compile run created a dead process in memory... killed it off an it ran fine.
Thanks for your help Moru ;)
P.S. I would still like to be able to use NOT in an IF statement though :P
Try if bNOT is doing what you want, I'm not totally sure it will work as you expect it :-)
BNOT is for binary stuff, not logical...
yes, I was expecting that since true in GLBasic is 1, not -1. So it's not working.